Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001743/0.00283, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001611/0.002706, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9376/0.9376, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08557/1.023, allocations: 53.65 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.991e-05/2.123e-05, allocations: 6.109 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01079/0.01081, allocations: 9.47 MB / 254.2 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006741/0.01755, allocations: 3.224 MB / 257.4 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.0192, allocations: 67.56 kB / 257.5 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.02098, allocations: 0.6829 MB / 258.2 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.024, allocations: 0.8421 MB / 259 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.02506, allocations: 403.3 kB / 259.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003467/0.02852, allocations: 2.657 MB / 262.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.02976, allocations: 1.296 MB / 263.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.03197, allocations: 2.196 MB / 265.6 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.03331, allocations: 1.317 MB / 266.9 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004311/0.03374, allocations: 308 kB / 267.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005741/0.03431, allocations: 411.8 kB / 267.6 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004553/0.03477, allocations: 0.7364 MB / 268.3 MB, free: 6.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006831/0.03545, allocations: 0.7876 MB / 269.1 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001864/0.03732, allocations: 2.118 MB / 271.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.048e-05/0.03733, allocations: 4 kB / 271.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03733, allocations: 0 / 271.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.516e-05/0.03739, allocations: 0 / 271.2 MB, free: 3.512 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003128/0.04052, allocations: 3.16 MB / 274.4 MB, free: 316 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.04055, allocations: 8.031 kB / 274.4 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1022/0.1428, allocations: 462.9 kB / 274.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.1445, allocations: 1.071 MB / 275.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.1446, allocations: 162.2 kB / 276.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.1448, allocations: 218.8 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.1467, allocations: 1.616 MB / 277.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.674e-05/0.1468, allocations: 12.36 kB / 277.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.1469, allocations: 88.47 kB / 278 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-05/0.147, allocations: 106.1 kB / 278.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.148, allocations: 0.6284 MB / 278.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00601/0.154, allocations: 5.496 MB / 284.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008447/0.1549, allocations: 0.6588 MB / 284.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/0.1554, allocations: 425.9 kB / 285.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.1556, allocations: 55.86 kB / 285.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.1556, allocations: 43.69 kB / 285.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.605e-06/0.1556, allocations: 1.375 kB / 285.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004029/0.1596, allocations: 2.498 MB / 287.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.029e-05/0.1596, allocations: 64.34 kB / 288 MB, free: 10.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005534/0.1602, allocations: 0.9679 MB / 288.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.1602, allocations: 43.83 kB / 289 MB, free: 10.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.1605, allocations: 0.8819 MB / 289.9 MB, free: 9.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1606, allocations: 427.6 kB / 290.3 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.1608, allocations: 242.9 kB / 290.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.13e-05/0.1609, allocations: 360.9 kB / 290.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.161, allocations: 163.7 kB / 291 MB, free: 9.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002665/0.1613, allocations: 0.5312 MB / 291.5 MB, free: 8.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006252/0.1619, allocations: 0.889 MB / 292.4 MB, free: 8.438 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/0.1619, allocations: 3.312 kB / 292.4 MB, free: 8.438 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001024/0.163, allocations: 0.9771 MB / 293.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.163, allocations: 10.38 kB / 293.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.163, allocations: 12 kB / 293.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004373/0.1634, allocations: 241.1 kB / 293.7 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006096/0.164, allocations: 332.6 kB / 294 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/0.166, allocations: 4.711 MB / 298.7 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004031/0.1664, allocations: 56.98 kB / 298.8 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.385e-05/0.1665, allocations: 48.53 kB / 298.8 MB, free: 3.992 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002934/0.1668, allocations: 198.5 kB / 299 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1669, allocations: 134.3 kB / 299.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008572/0.1678, allocations: 0.8419 MB / 300 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1678, allocations: 12 kB / 300 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1678, allocations: 4 kB / 300 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1678, allocations: 3.984 kB / 300 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.17, allocations: 2.399 MB / 302.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.17, allocations: 0 / 302.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.1705, allocations: 214.5 kB / 302.6 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.1707, allocations: 197.6 kB / 302.8 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004894/0.1712, allocations: 291.4 kB / 303.1 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.1712, allocations: 35.98 kB / 303.1 MB, free: 196 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/0.1743, allocations: 5.915 MB / 309 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1743, allocations: 8 kB / 309 MB, free: 9.996 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.1756, allocations: 1.239 MB / 310.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.1757, allocations: 31.98 kB / 310.3 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.176, allocations: 43.98 kB / 310.4 MB, free: 8.648 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.1762, allocations: 104.1 kB / 310.5 MB, free: 8.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.1762, allocations: 28.75 kB / 310.5 MB, free: 8.523 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003817/0.1766, allocations: 483.3 kB / 311 MB, free: 8.105 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1766, allocations: 0 / 311 MB, free: 8.105 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001011/0.1776, allocations: 447.9 kB / 311.4 MB, free: 7.668 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002693/0.1779, allocations: 182.5 kB / 311.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.179, allocations: 1.161 MB / 312.7 MB, free: 6.367 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.622e-05/0.1791, allocations: 35.11 kB / 312.8 MB, free: 6.332 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008328/0.1799, allocations: 0.9862 MB / 313.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/0.1818, allocations: 3.451 MB / 317.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.1952, allocations: 3.725 MB / 320.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.1956, allocations: 0.5012 MB / 321.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005708/0.1962, allocations: 200.8 kB / 321.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005886/0.1968, allocations: 377.1 kB / 322 MB, free: 12.36 MB / 298.7 MB Notification: Performance of SimCode: time 1.332e-06/0.1968, allocations: 0 / 322 MB, free: 12.36 MB / 298.7 MB Notification: Performance of Templates: time 0.03614/0.2329, allocations: 24.57 MB / 346.6 MB, free: 4.234 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3366727521643043]