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.0009536/0.0009536, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.0009774/0.0009774, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.9202/0.9202, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.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.102e-06/1.102e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.193e-05/1.304e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01047/0.01048, allocations: 9.61 MB / 282.6 MB, free: 7.848 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004933/0.01542, allocations: 3.1 MB / 285.7 MB, free: 4.738 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006734/0.01609, allocations: 67.56 kB / 285.8 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.01747, allocations: 0.6752 MB / 286.5 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001732/0.0192, allocations: 0.8497 MB / 287.3 MB, free: 3.137 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007689/0.01997, allocations: 399.3 kB / 287.7 MB, free: 2.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00265/0.02262, allocations: 2.649 MB / 290.3 MB, free: 88 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.111/0.1336, allocations: 1.256 MB / 291.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.1362, allocations: 2.026 MB / 293.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.1377, allocations: 1.324 MB / 294.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004108/0.1381, allocations: 307 kB / 295.2 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006788/0.1388, allocations: 410.8 kB / 295.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006456/0.1394, allocations: 0.8985 MB / 296.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009069/0.1403, allocations: 0.9637 MB / 297.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002211/0.1426, allocations: 2.259 MB / 299.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1426, allocations: 3.719 kB / 299.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1426, allocations: 0 / 299.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.762e-05/0.1426, allocations: 0 / 299.8 MB, free: 15.28 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.003482/0.1461, allocations: 2.992 MB / 302.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1461, allocations: 12.56 kB / 302.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/0.1469, allocations: 480.3 kB / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.1485, allocations: 1.463 MB / 304.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.181e-05/0.1486, allocations: 152.6 kB / 304.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002305/0.1488, allocations: 217.6 kB / 305.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00236/0.1512, allocations: 1.72 MB / 306.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.703e-05/0.1512, allocations: 7.891 kB / 306.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/0.1514, allocations: 86.48 kB / 306.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.969e-05/0.1515, allocations: 109.1 kB / 307 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.1531, allocations: 0.7883 MB / 307.8 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006622/0.1597, allocations: 6.871 MB / 314.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1608, allocations: 0.7208 MB / 315.4 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.1616, allocations: 0.4959 MB / 315.9 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.1617, allocations: 56.95 kB / 315.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.1618, allocations: 51.77 kB / 316 MB, free: 4.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.665e-06/0.1618, allocations: 0 / 316 MB, free: 4.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004935/0.1667, allocations: 3.074 MB / 319 MB, free: 1.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.1667, allocations: 64.41 kB / 319.1 MB, free: 1.676 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.1677, allocations: 1.173 MB / 320.3 MB, free: 0.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.1678, allocations: 41.7 kB / 320.3 MB, free: 464 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006129/0.1684, allocations: 1.147 MB / 321.5 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002767/0.1687, allocations: 429.5 kB / 321.9 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003401/0.169, allocations: 265.1 kB / 322.1 MB, free: 14.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1692, allocations: 0.5394 MB / 322.7 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.1697, allocations: 223.8 kB / 322.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007215/0.1704, allocations: 0.7524 MB / 323.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.1716, allocations: 1.09 MB / 324.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.1717, allocations: 4 kB / 324.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002086/0.1737, allocations: 1.321 MB / 326.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1738, allocations: 12.25 kB / 326.1 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.1738, allocations: 16 kB / 326.1 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006537/0.1744, allocations: 246.1 kB / 326.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008137/0.1752, allocations: 315.5 kB / 326.7 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/0.1794, allocations: 6.606 MB / 333.3 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/0.18, allocations: 79.88 kB / 333.3 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.053e-05/0.1801, allocations: 63.94 kB / 333.4 MB, free: 2.742 MB / 282.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.0004057/0.1805, allocations: 245.1 kB / 333.6 MB, free: 2.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.1807, allocations: 197.1 kB / 333.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.1825, allocations: 1.074 MB / 334.9 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.1825, allocations: 12 kB / 334.9 MB, free: 1.223 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1825, allocations: 4 kB / 334.9 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1825, allocations: 11.98 kB / 334.9 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/0.1869, allocations: 2.958 MB / 337.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.187, allocations: 4 kB / 337.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/0.1876, allocations: 198.6 kB / 338.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007473/0.1883, allocations: 295.1 kB / 338.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/0.1884, allocations: 31.92 kB / 338.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005219/0.1936, allocations: 8.33 MB / 346.7 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.1936, allocations: 7.469 kB / 346.7 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.1959, allocations: 1.594 MB / 348.3 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/0.1963, allocations: 266.9 kB / 348.6 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.1965, allocations: 28 kB / 348.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.197, allocations: 67.94 kB / 348.7 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.1972, allocations: 99.94 kB / 348.8 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.383e-05/0.1973, allocations: 32 kB / 348.8 MB, free: 2.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008288/0.1981, allocations: 0.6844 MB / 349.5 MB, free: 2.078 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1981, allocations: 0 / 349.5 MB, free: 2.078 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001727/0.1998, allocations: 447.9 kB / 349.9 MB, free: 1.637 MB / 298.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.0003587/0.2002, allocations: 197.7 kB / 350.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2021, allocations: 1.463 MB / 351.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2021, allocations: 0 / 351.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.2034, allocations: 1.241 MB / 352.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.2047, allocations: 377.3 kB / 353.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.2105, allocations: 3.798 MB / 357 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.211, allocations: 0.5637 MB / 357.6 MB, free: 9.867 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005446/0.2115, allocations: 292.5 kB / 357.9 MB, free: 9.574 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.2117, allocations: 104.5 kB / 358 MB, free: 9.473 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2117, allocations: 0 / 358 MB, free: 9.473 MB / 314.7 MB Notification: Performance of Templates: time 0.02793/0.2396, allocations: 23.35 MB / 381.3 MB, free: 2.508 MB / 330.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4350569560192525]