Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 94.67 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001252, allocations: 184 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1718/0.1718, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003418, allocations: 15.98 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1197, allocations: 59.17 MB / 459.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007167/0.1269, allocations: 5.815 MB / 465.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006764/0.1337, allocations: 4.465 MB / 470.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006243/0.1344, allocations: 43.69 kB / 470.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007804/0.1422, allocations: 4.575 MB / 474.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008454/0.1431, allocations: 334.6 kB / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.1437, allocations: 223.7 kB / 475.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002208/0.1459, allocations: 2.129 MB / 477.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009012/0.1468, allocations: 0.5434 MB / 478 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004333/0.1473, allocations: 294.7 kB / 478.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005996/0.1479, allocations: 462.3 kB / 478.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.546e-05/0.1479, allocations: 28 kB / 478.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.1482, allocations: 107.8 kB / 478.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.1484, allocations: 259.2 kB / 479.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.1487, allocations: 324 kB / 479.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006507/0.1494, allocations: 0.7044 MB / 480.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1494, allocations: 0 / 480.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1494, allocations: 3.938 kB / 480.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1494, allocations: 4 kB / 480.2 MB, free: 2.703 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001482/0.1509, allocations: 0.785 MB / 480.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.151, allocations: 12.03 kB / 481 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004462/0.1514, allocations: 96.05 kB / 481 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009239/0.1524, allocations: 0.5332 MB / 481.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.1524, allocations: 36.94 kB / 481.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.551e-05/0.1525, allocations: 47.98 kB / 481.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.1534, allocations: 0.6414 MB / 482.3 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.1535, allocations: 4 kB / 482.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.1535, allocations: 19.98 kB / 482.3 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.1536, allocations: 56.95 kB / 482.4 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007439/0.1544, allocations: 487.6 kB / 482.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003151/0.1576, allocations: 2.554 MB / 485.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004893/0.1581, allocations: 319.5 kB / 485.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.1584, allocations: 179.1 kB / 485.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.1584, allocations: 11.98 kB / 485.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.1584, allocations: 34.56 kB / 485.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.194e-06/0.1584, allocations: 3.938 kB / 485.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002462/0.1609, allocations: 1.625 MB / 487.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.161, allocations: 114.9 kB / 487.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.1614, allocations: 425.8 kB / 488.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.1615, allocations: 33.7 kB / 488.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.1617, allocations: 307.6 kB / 488.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.452e-05/0.1618, allocations: 122.3 kB / 488.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.046e-05/0.1618, allocations: 41.69 kB / 488.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.162, allocations: 370.7 kB / 489 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.1622, allocations: 157 kB / 489.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.1626, allocations: 301.8 kB / 489.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006178/0.1632, allocations: 491.7 kB / 489.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1632, allocations: 4 kB / 489.9 MB, free: 8.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001308/0.1645, allocations: 0.7954 MB / 490.7 MB, free: 7.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1645, allocations: 8 kB / 490.7 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1646, allocations: 4 kB / 490.7 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006558/0.1652, allocations: 221 kB / 490.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.1655, allocations: 71.89 kB / 491 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004185/0.1697, allocations: 3.893 MB / 494.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.1701, allocations: 19.98 kB / 494.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.1701, allocations: 24 kB / 494.9 MB, free: 3.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003555/0.1705, allocations: 225.6 kB / 495.1 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1706, allocations: 47.38 kB / 495.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009562/0.1716, allocations: 0.638 MB / 495.8 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1716, allocations: 4 kB / 495.8 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1716, allocations: 3.938 kB / 495.8 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1716, allocations: 0 / 495.8 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.1732, allocations: 1.203 MB / 497 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1733, allocations: 0 / 497 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.1737, allocations: 75.89 kB / 497.1 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.1739, allocations: 53.67 kB / 497.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.1739, allocations: 16.05 kB / 497.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.1757, allocations: 2.638 MB / 499.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1758, allocations: 4.031 kB / 499.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.1769, allocations: 0.9568 MB / 0.489 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.1771, allocations: 148.4 kB / 0.4892 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/0.1771, allocations: 8 kB / 0.4892 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.1774, allocations: 11.98 kB / 0.4892 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.1775, allocations: 27.91 kB / 0.4892 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.1775, allocations: 15.98 kB / 0.4892 GB, free: 12.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000359/0.1779, allocations: 295.1 kB / 0.4895 GB, free: 12.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1779, allocations: 4 kB / 0.4895 GB, free: 12.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006781/0.1786, allocations: 128 kB / 0.4896 GB, free: 12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001584/0.1787, allocations: 113.4 kB / 0.4898 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.1801, allocations: 0.7322 MB / 0.4905 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1801, allocations: 0 / 0.4905 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005422/0.1806, allocations: 422 kB / 0.4909 GB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008401/0.1815, allocations: 105.8 kB / 0.491 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.1839, allocations: 1.865 MB / 0.4928 GB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006249/0.1846, allocations: 0.9366 MB / 0.4937 GB, free: 7.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003417/0.1849, allocations: 108.4 kB / 0.4938 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.185, allocations: 39.42 kB / 0.4938 GB, free: 7.582 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1851, allocations: 0 / 0.4938 GB, free: 7.582 MB / 382.1 MB Notification: Performance of Templates: time 0.01309/0.1981, allocations: 6.408 MB / 0.5001 GB, free: 1.227 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches