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.001615/0.001615, allocations: 106.2 kB / 16.92 MB, free: 5.781 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.001925/0.001925, allocations: 191.5 kB / 17.85 MB, free: 5.164 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.345/1.345, 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.1746/0.1746, allocations: 38.05 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001559, allocations: 64.88 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006488/0.1115, allocations: 4.416 MB / 461.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.1138, allocations: 1.425 MB / 462.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.114, allocations: 11.94 kB / 462.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.1151, allocations: 370.5 kB / 463.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004876/0.1156, allocations: 254.8 kB / 463.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.1163, allocations: 239.4 kB / 463.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005593/0.1168, allocations: 0.5573 MB / 464.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004261/0.1173, allocations: 293.1 kB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/0.1176, allocations: 251 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005172/0.1181, allocations: 358.8 kB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.048e-05/0.1182, allocations: 40 kB / 465 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004454/0.1186, allocations: 231.6 kB / 465.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.1189, allocations: 255.3 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002609/0.1191, allocations: 250.8 kB / 465.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006986/0.1199, allocations: 0.6465 MB / 466.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.1199, allocations: 8 kB / 466.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1199, allocations: 0 / 466.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.1199, allocations: 0 / 466.4 MB, free: 14.47 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.001391/0.1213, allocations: 0.7777 MB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1213, allocations: 15.89 kB / 467.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006048/0.122, allocations: 80.23 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000666/0.1226, allocations: 415.2 kB / 467.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.1227, allocations: 25.38 kB / 467.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.1228, allocations: 48.06 kB / 467.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009739/0.1238, allocations: 0.6765 MB / 468.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.1238, allocations: 7.938 kB / 468.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.1239, allocations: 19.98 kB / 468.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000179/0.1241, allocations: 48.97 kB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009666/0.1251, allocations: 0.6713 MB / 469.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00328/0.1283, allocations: 2.532 MB / 471.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.1289, allocations: 333.3 kB / 472 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.1292, allocations: 229.9 kB / 472.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.1292, allocations: 7.984 kB / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1293, allocations: 38.5 kB / 472.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.1293, allocations: 0 / 472.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001943/0.1312, allocations: 1.344 MB / 473.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.1313, allocations: 81.11 kB / 473.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.1316, allocations: 300.4 kB / 474 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.1316, allocations: 37.7 kB / 474.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1318, allocations: 259.5 kB / 474.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.1319, allocations: 141.8 kB / 474.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.132, allocations: 98.14 kB / 474.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1321, allocations: 354.8 kB / 474.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.1324, allocations: 201 kB / 475.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.1328, allocations: 369 kB / 475.5 MB, free: 4.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006936/0.1335, allocations: 0.606 MB / 476.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1335, allocations: 4 kB / 476.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008834/0.1344, allocations: 0.6192 MB / 476.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1344, allocations: 8 kB / 476.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1345, allocations: 7.984 kB / 476.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1345, allocations: 8 kB / 476.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004222/0.1349, allocations: 115.8 kB / 476.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.1349, allocations: 7.984 kB / 476.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.1352, allocations: 24.36 kB / 476.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.45e-05/0.1352, allocations: 31.98 kB / 476.9 MB, free: 3.449 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.0002071/0.1354, allocations: 213.6 kB / 477.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.1355, allocations: 43.41 kB / 477.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007325/0.1363, allocations: 0.4894 MB / 477.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.1363, allocations: 16 kB / 477.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1363, allocations: 0 / 477.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1363, allocations: 3.984 kB / 477.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.1379, allocations: 1.104 MB / 478.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1379, allocations: 0 / 478.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.1383, allocations: 71.89 kB / 478.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1383, allocations: 0 / 478.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.1384, allocations: 8 kB / 478.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1384, allocations: 8.094 kB / 478.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.1384, allocations: 0 / 478.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000997/0.1394, allocations: 0.8356 MB / 479.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.031e-05/0.1395, allocations: 112.8 kB / 479.8 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.1396, allocations: 15.91 kB / 479.8 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1398, allocations: 15.98 kB / 479.8 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.1398, allocations: 23.89 kB / 479.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.1399, allocations: 16 kB / 479.9 MB, free: 360 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.1401, allocations: 219 kB / 480.1 MB, free: 144 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1401, allocations: 0 / 480.1 MB, free: 144 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005044/0.1406, allocations: 104 kB / 480.2 MB, free: 40 kB / 350.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.0002222/0.1408, allocations: 147.2 kB / 480.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008044/0.1416, allocations: 0.5721 MB / 480.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1416, allocations: 0 / 480.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.1419, allocations: 232.4 kB / 481.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.1425, allocations: 71.36 kB / 481.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.144, allocations: 1.119 MB / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.1445, allocations: 0.8704 MB / 483.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003302/0.1448, allocations: 135.1 kB / 483.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.488e-05/0.1449, allocations: 31.44 kB / 483.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1449, allocations: 0 / 483.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of Templates: time 0.007787/0.1527, allocations: 3.772 MB / 487.1 MB, free: 9.051 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