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.001104/0.001104, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.001151/0.001151, allocations: 191.3 kB / 17.85 MB, free: 5.168 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 / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1731/0.1731, allocations: 38.04 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.00122, allocations: 65.97 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1159, allocations: 58.06 MB / 456.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007458/0.1234, allocations: 5.382 MB / 462.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006131/0.1296, allocations: 4.16 MB / 466.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004271/0.13, allocations: 15.94 kB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008627/0.1387, allocations: 4.838 MB / 471.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008425/0.1395, allocations: 346.3 kB / 471.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.1402, allocations: 247.5 kB / 471.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.1419, allocations: 1.567 MB / 473.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000543/0.1425, allocations: 388.2 kB / 473.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.1429, allocations: 374.6 kB / 474.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005379/0.1434, allocations: 442.3 kB / 474.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.836e-05/0.1435, allocations: 44 kB / 474.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.1438, allocations: 123.8 kB / 474.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.144, allocations: 287.2 kB / 475 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/0.1443, allocations: 322.4 kB / 475.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006953/0.145, allocations: 0.728 MB / 476.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1451, allocations: 0 / 476.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1451, allocations: 0 / 476.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.627e-06/0.1451, allocations: 0 / 476.1 MB, free: 4.773 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.001554/0.1466, allocations: 0.9133 MB / 477 MB, free: 3.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1467, allocations: 12.03 kB / 477 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004497/0.1471, allocations: 88.06 kB / 477.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009191/0.1481, allocations: 0.5293 MB / 477.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.1481, allocations: 37 kB / 477.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.303e-05/0.1482, allocations: 55.89 kB / 477.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009237/0.1491, allocations: 0.6452 MB / 478.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.1492, allocations: 4 kB / 478.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.993e-05/0.1492, allocations: 23.92 kB / 478.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.1494, allocations: 48.97 kB / 478.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000766/0.1502, allocations: 495.6 kB / 478.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003196/0.1534, allocations: 2.531 MB / 481.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.1539, allocations: 323.6 kB / 481.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.1541, allocations: 187 kB / 481.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1542, allocations: 4.5 kB / 481.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.1542, allocations: 38.56 kB / 482 MB, free: 14.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.873e-06/0.1542, allocations: 0 / 482 MB, free: 14.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002541/0.1568, allocations: 1.636 MB / 483.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.1569, allocations: 110.8 kB / 483.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.1573, allocations: 425.8 kB / 484.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.1574, allocations: 29.7 kB / 484.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.1576, allocations: 307.6 kB / 484.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.768e-05/0.1577, allocations: 122.2 kB / 484.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.1578, allocations: 90.23 kB / 484.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1579, allocations: 362.7 kB / 485 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.1582, allocations: 165.1 kB / 485.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003466/0.1586, allocations: 305.8 kB / 485.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006403/0.1592, allocations: 483.7 kB / 486 MB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.1592, allocations: 4 kB / 486 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001312/0.1606, allocations: 0.8028 MB / 486.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1606, allocations: 8.5 kB / 486.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1606, allocations: 8 kB / 486.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006567/0.1613, allocations: 209.5 kB / 487 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003153/0.1616, allocations: 79.83 kB / 487.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004542/0.1661, allocations: 4.218 MB / 491.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.1665, allocations: 15.94 kB / 491.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.1666, allocations: 27.98 kB / 491.3 MB, free: 4.57 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.0003308/0.1669, allocations: 221.9 kB / 491.6 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.167, allocations: 47.44 kB / 491.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009417/0.168, allocations: 0.6496 MB / 492.2 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.168, allocations: 4.094 kB / 492.3 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.168, allocations: 3.984 kB / 492.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.168, allocations: 3.984 kB / 492.3 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.1697, allocations: 1.195 MB / 493.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1698, allocations: 0 / 493.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004689/0.1702, allocations: 75.88 kB / 493.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.1704, allocations: 53.73 kB / 493.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.1704, allocations: 12 kB / 493.6 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.1724, allocations: 2.831 MB / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1724, allocations: 0 / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.1735, allocations: 0.953 MB / 497.4 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.1737, allocations: 148.5 kB / 497.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.174e-05/0.1738, allocations: 16 kB / 497.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.1741, allocations: 11.98 kB / 497.5 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.372e-05/0.1742, allocations: 27.95 kB / 497.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.1742, allocations: 8 kB / 497.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.1746, allocations: 299.1 kB / 497.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1746, allocations: 0 / 497.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006356/0.1752, allocations: 132 kB / 498 MB, free: 13.36 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.0001835/0.1754, allocations: 117.4 kB / 498.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.1769, allocations: 0.7869 MB / 498.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1769, allocations: 0 / 498.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006004/0.1775, allocations: 418.1 kB / 499.3 MB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007751/0.1783, allocations: 124.4 kB / 499.4 MB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.1808, allocations: 1.488 MB / 0.4892 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006165/0.1815, allocations: 0.9405 MB / 0.4901 GB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000367/0.1818, allocations: 108.4 kB / 0.4902 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.182, allocations: 43.42 kB / 0.4902 GB, free: 9.238 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.182, allocations: 0 / 0.4902 GB, free: 9.238 MB / 382.1 MB Notification: Performance of Templates: time 0.014/0.196, allocations: 6.807 MB / 0.4969 GB, free: 2.492 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