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.001266/0.001266, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.001247/0.001247, allocations: 192 kB / 18.62 MB, free: 4.434 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.375/1.375, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2078/0.2078, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 62.25 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1063, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007368/0.1137, allocations: 5.378 MB / 463.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00591/0.1196, allocations: 4.164 MB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004255/0.1201, allocations: 19.88 kB / 467.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008529/0.1286, allocations: 4.837 MB / 472.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000835/0.1295, allocations: 346.4 kB / 473 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.1301, allocations: 247.5 kB / 473.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001775/0.1318, allocations: 1.567 MB / 474.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004941/0.1323, allocations: 380.2 kB / 475.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.1327, allocations: 382.6 kB / 475.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.1332, allocations: 438.4 kB / 476 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.1333, allocations: 47.94 kB / 476.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1336, allocations: 127.8 kB / 476.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.1338, allocations: 275.3 kB / 476.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002865/0.1341, allocations: 322.4 kB / 476.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000668/0.1348, allocations: 0.7435 MB / 477.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1348, allocations: 4 kB / 477.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1348, allocations: 0 / 477.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1348, allocations: 0 / 477.5 MB, free: 4.043 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.001489/0.1363, allocations: 0.9094 MB / 478.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.1364, allocations: 19.89 kB / 478.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004074/0.1368, allocations: 92.06 kB / 478.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1378, allocations: 0.5489 MB / 479.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.1378, allocations: 36.98 kB / 479.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.1379, allocations: 55.84 kB / 479.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008612/0.1388, allocations: 0.653 MB / 479.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.1388, allocations: 0 / 479.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.1389, allocations: 16 kB / 479.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.139, allocations: 48.97 kB / 479.9 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007217/0.1397, allocations: 499.6 kB / 480.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003204/0.143, allocations: 2.511 MB / 482.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004917/0.1435, allocations: 319.6 kB / 483.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.1437, allocations: 187 kB / 483.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.1438, allocations: 4.5 kB / 483.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1438, allocations: 38.56 kB / 483.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.974e-06/0.1438, allocations: 0 / 483.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002428/0.1463, allocations: 1.635 MB / 485.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.1463, allocations: 118.8 kB / 485.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004141/0.1468, allocations: 421.8 kB / 485.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.1468, allocations: 33.7 kB / 485.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.147, allocations: 311.6 kB / 485.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.098e-05/0.1471, allocations: 122.2 kB / 486.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.1472, allocations: 86.25 kB / 486.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1474, allocations: 362.7 kB / 486.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.1477, allocations: 161 kB / 486.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.148, allocations: 301.8 kB / 487 MB, free: 10.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005939/0.1486, allocations: 483.9 kB / 487.4 MB, free: 9.523 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1486, allocations: 3.938 kB / 487.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001287/0.1499, allocations: 0.803 MB / 488.2 MB, free: 8.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1499, allocations: 4 kB / 488.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1499, allocations: 4.344 kB / 488.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.1506, allocations: 220.8 kB / 488.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.1509, allocations: 79.83 kB / 488.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/0.1554, allocations: 4.223 MB / 492.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.1557, allocations: 19.94 kB / 492.8 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.1558, allocations: 23.98 kB / 492.8 MB, free: 3.832 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.000282/0.156, allocations: 221.9 kB / 493 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1562, allocations: 47.44 kB / 493.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000897/0.1571, allocations: 0.6418 MB / 493.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1571, allocations: 4 kB / 493.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1571, allocations: 4 kB / 493.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1571, allocations: 3.984 kB / 493.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.1588, allocations: 1.195 MB / 494.9 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1588, allocations: 0 / 494.9 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004638/0.1593, allocations: 75.94 kB / 495 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.1595, allocations: 53.67 kB / 495 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.1595, allocations: 12 kB / 495.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.1614, allocations: 2.835 MB / 497.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1614, allocations: 0 / 497.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.1625, allocations: 0.9569 MB / 498.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.1628, allocations: 144.5 kB / 499 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.615e-05/0.1628, allocations: 15.98 kB / 499 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1631, allocations: 15.98 kB / 499 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.1632, allocations: 23.97 kB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.1633, allocations: 8 kB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.1636, allocations: 299.1 kB / 499.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1636, allocations: 0 / 499.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006221/0.1642, allocations: 132 kB / 499.5 MB, free: 12.63 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.0001467/0.1644, allocations: 119.1 kB / 499.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.1657, allocations: 0.7437 MB / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1657, allocations: 0 / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000546/0.1663, allocations: 418 kB / 0.489 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/0.167, allocations: 121 kB / 0.4891 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.1695, allocations: 1.469 MB / 0.4905 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/0.1701, allocations: 0.9483 MB / 0.4915 GB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003393/0.1704, allocations: 100.4 kB / 0.4916 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1705, allocations: 39.44 kB / 0.4916 GB, free: 8.566 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1705, allocations: 4 kB / 0.4916 GB, free: 8.562 MB / 382.1 MB Notification: Performance of Templates: time 0.01417/0.1847, allocations: 6.799 MB / 0.4983 GB, free: 1.824 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches