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.001428/0.001428, allocations: 114.3 kB / 16.63 MB, free: 6.812 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.001806/0.001806, allocations: 190 kB / 17.55 MB, free: 5.934 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.406/1.406, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.04 MB / 329.4 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 57.72 kB / 398.3 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 58.07 MB / 456.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006248/0.108, allocations: 5.065 MB / 461.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.1105, allocations: 1.609 MB / 463 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.1108, allocations: 23.88 kB / 463 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1119, allocations: 361.7 kB / 463.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.1124, allocations: 231.1 kB / 463.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000567/0.113, allocations: 219.6 kB / 463.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005961/0.1136, allocations: 0.5611 MB / 464.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005394/0.1142, allocations: 305.1 kB / 464.7 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.1145, allocations: 255 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.115, allocations: 378.9 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.09e-05/0.1151, allocations: 40 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004127/0.1155, allocations: 235.6 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.1157, allocations: 243.4 kB / 465.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.116, allocations: 258.7 kB / 466.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006988/0.1167, allocations: 0.6659 MB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1167, allocations: 0 / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1167, allocations: 0 / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1167, allocations: 0 / 466.7 MB, free: 14.02 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.001414/0.1181, allocations: 0.7739 MB / 467.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1182, allocations: 11.89 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005588/0.1187, allocations: 88.22 kB / 467.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.1193, allocations: 407.2 kB / 468 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.1194, allocations: 33.34 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.1195, allocations: 44.12 kB / 468.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009814/0.1205, allocations: 0.6843 MB / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1205, allocations: 0 / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.1206, allocations: 19.98 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001746/0.1208, allocations: 48.97 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009838/0.1217, allocations: 0.6713 MB / 469.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.125, allocations: 2.517 MB / 472 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.1256, allocations: 345.3 kB / 472.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.1259, allocations: 222 kB / 472.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-05/0.126, allocations: 15.95 kB / 472.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.126, allocations: 38.5 kB / 472.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 4.057e-06/0.126, allocations: 0 / 472.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002011/0.1281, allocations: 1.349 MB / 474 MB, free: 6.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1281, allocations: 81.11 kB / 474.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.1284, allocations: 300.5 kB / 474.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.1285, allocations: 29.7 kB / 474.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1286, allocations: 259.5 kB / 474.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.1287, allocations: 153.8 kB / 474.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.1289, allocations: 98.28 kB / 474.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.129, allocations: 350.8 kB / 475.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.1293, allocations: 197 kB / 475.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/0.1297, allocations: 369 kB / 475.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007168/0.1304, allocations: 0.606 MB / 476.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1305, allocations: 0 / 476.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008936/0.1314, allocations: 0.6268 MB / 477 MB, free: 3.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1314, allocations: 8 kB / 477 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1314, allocations: 4 kB / 477 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1314, allocations: 11.94 kB / 477 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.1319, allocations: 115.8 kB / 477.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.1319, allocations: 16.45 kB / 477.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.1321, allocations: 27.98 kB / 477.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.1322, allocations: 16 kB / 477.2 MB, free: 2.996 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.0002149/0.1324, allocations: 221.6 kB / 477.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.1325, allocations: 43.55 kB / 477.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007284/0.1332, allocations: 496.3 kB / 477.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.998e-05/0.1332, allocations: 8 kB / 478 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1332, allocations: 0 / 478 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.1333, allocations: 4 kB / 478 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.1349, allocations: 1.1 MB / 479.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.1349, allocations: 4 kB / 479.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.1352, allocations: 71.89 kB / 479.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1352, allocations: 7.938 kB / 479.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.1353, allocations: 16.08 kB / 479.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1353, allocations: 0 / 479.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1353, allocations: 4 kB / 479.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1363, allocations: 0.8395 MB / 480 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.551e-05/0.1364, allocations: 104.6 kB / 480.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.1365, allocations: 12.03 kB / 480.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.1367, allocations: 15.98 kB / 480.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.1368, allocations: 27.91 kB / 480.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.1368, allocations: 12 kB / 480.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002003/0.137, allocations: 207.1 kB / 480.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.137, allocations: 0 / 480.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005261/0.1376, allocations: 108 kB / 480.5 MB, free: 15.59 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.0002427/0.1378, allocations: 151.1 kB / 480.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000876/0.1387, allocations: 0.5791 MB / 481.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1387, allocations: 448 / 481.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000297/0.139, allocations: 223.8 kB / 481.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.1395, allocations: 67.75 kB / 481.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.1412, allocations: 1.299 MB / 482.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.1417, allocations: 0.8781 MB / 483.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003362/0.142, allocations: 127.1 kB / 483.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.795e-05/0.1421, allocations: 35.44 kB / 483.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1421, allocations: 0 / 483.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of Templates: time 0.007574/0.1497, allocations: 3.783 MB / 487.6 MB, free: 8.41 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches