Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 113.2 kB / 17.69 MB, free: 5.309 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.001242/0.001242, allocations: 187 kB / 18.63 MB, free: 4.379 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.616/1.616, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2069/0.2069, allocations: 38.05 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.77 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1438, allocations: 58.06 MB / 458.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006973/0.1509, allocations: 4.424 MB / 462.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.1534, allocations: 1.426 MB / 464.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.1536, allocations: 11.94 kB / 464.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.1548, allocations: 374.4 kB / 464.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005479/0.1553, allocations: 250.8 kB / 464.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.156, allocations: 239.4 kB / 465 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006167/0.1566, allocations: 0.5572 MB / 465.6 MB, free: 76 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004939/0.1571, allocations: 289.1 kB / 465.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.1575, allocations: 259 kB / 466.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004952/0.158, allocations: 358.9 kB / 466.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.234e-05/0.158, allocations: 40 kB / 466.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000409/0.1585, allocations: 219.6 kB / 466.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.1587, allocations: 243.4 kB / 467 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002623/0.159, allocations: 254.8 kB / 467.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007214/0.1597, allocations: 0.6698 MB / 467.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1597, allocations: 3.938 kB / 467.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1597, allocations: 0 / 467.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.1598, allocations: 0 / 467.9 MB, free: 13.77 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001417/0.1612, allocations: 0.77 MB / 468.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1612, allocations: 15.83 kB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006025/0.1618, allocations: 92.22 kB / 468.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000741/0.1626, allocations: 423.2 kB / 469.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.501e-05/0.1626, allocations: 29.38 kB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.1628, allocations: 52.09 kB / 469.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009606/0.1637, allocations: 0.6765 MB / 469.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.1638, allocations: 4 kB / 469.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.007e-05/0.1638, allocations: 19.98 kB / 469.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001711/0.164, allocations: 52.97 kB / 470 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009766/0.165, allocations: 0.6713 MB / 470.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003526/0.1685, allocations: 2.505 MB / 473.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005688/0.1691, allocations: 341.3 kB / 473.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.1694, allocations: 226 kB / 473.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.429e-05/0.1695, allocations: 11.98 kB / 473.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.1695, allocations: 46.42 kB / 473.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.844e-06/0.1695, allocations: 0 / 473.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002141/0.1717, allocations: 1.34 MB / 475.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.1718, allocations: 81.11 kB / 475.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.1721, allocations: 308.5 kB / 475.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.1721, allocations: 29.7 kB / 475.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.1723, allocations: 263.5 kB / 475.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1725, allocations: 149.8 kB / 475.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1726, allocations: 94.16 kB / 476 MB, free: 5.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1728, allocations: 350.7 kB / 476.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.1731, allocations: 197 kB / 476.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004139/0.1735, allocations: 369.1 kB / 476.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007432/0.1743, allocations: 0.6096 MB / 477.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1743, allocations: 4 kB / 477.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009048/0.1752, allocations: 0.6233 MB / 478.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.1752, allocations: 12.09 kB / 478.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.1752, allocations: 4 kB / 478.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.1753, allocations: 8 kB / 478.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.1757, allocations: 107.8 kB / 478.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/0.1757, allocations: 11.98 kB / 478.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.1759, allocations: 23.98 kB / 478.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.176, allocations: 24 kB / 478.3 MB, free: 2.742 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002549/0.1763, allocations: 213.6 kB / 478.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.688e-05/0.1764, allocations: 39.47 kB / 478.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007961/0.1772, allocations: 0.4975 MB / 479.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/0.1772, allocations: 15.92 kB / 479.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1772, allocations: 4 kB / 479.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.1772, allocations: 0 / 479.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.179, allocations: 1.101 MB / 480.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.179, allocations: 0 / 480.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.1794, allocations: 71.94 kB / 480.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.1794, allocations: 7.984 kB / 480.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.1795, allocations: 8 kB / 480.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.1795, allocations: 7.938 kB / 480.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1795, allocations: 0 / 480.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.1806, allocations: 0.8397 MB / 481.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.1807, allocations: 104.7 kB / 481.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.1807, allocations: 11.91 kB / 481.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.1809, allocations: 24.02 kB / 481.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.181, allocations: 27.84 kB / 481.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.181, allocations: 12 kB / 481.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.1812, allocations: 215.1 kB / 481.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1813, allocations: 0 / 481.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004735/0.1817, allocations: 108 kB / 481.6 MB, free: 15.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002531/0.182, allocations: 143 kB / 481.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007464/0.1828, allocations: 0.4969 MB / 482.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1828, allocations: 0 / 482.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.1831, allocations: 228 kB / 482.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005189/0.1836, allocations: 71.75 kB / 482.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.1853, allocations: 1.1 MB / 483.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.1859, allocations: 0.8782 MB / 484.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003262/0.1862, allocations: 135.1 kB / 484.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.737e-05/0.1863, allocations: 31.44 kB / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1863, allocations: 0 / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of Templates: time 0.009005/0.1953, allocations: 3.86 MB / 488.6 MB, free: 8.348 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches