Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.00192/0.001921, allocations: 190 kB / 17.54 MB, free: 6.066 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.325/1.325, 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.1706/0.1706, allocations: 38.03 MB / 329.4 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 61.23 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1103, allocations: 58.06 MB / 456.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004864/0.1152, allocations: 3.677 MB / 460 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.1172, allocations: 1.574 MB / 461.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.1174, allocations: 11.94 kB / 461.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007704/0.1181, allocations: 239.2 kB / 461.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005316/0.1187, allocations: 263.1 kB / 462.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.119, allocations: 115.7 kB / 462.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003901/0.1194, allocations: 339 kB / 462.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/0.1197, allocations: 153.9 kB / 462.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.12, allocations: 151.3 kB / 462.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1202, allocations: 155.5 kB / 463 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.1202, allocations: 16 kB / 463 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004178/0.1207, allocations: 343.1 kB / 463.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.1208, allocations: 103.8 kB / 463.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.1209, allocations: 103.5 kB / 463.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004194/0.1213, allocations: 382.8 kB / 463.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1213, allocations: 0 / 463.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1213, allocations: 0 / 463.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1214, allocations: 0 / 463.9 MB, free: 0.8359 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000582/0.1219, allocations: 0.5026 MB / 464.4 MB, free: 292 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.122, allocations: 15.89 kB / 464.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008602/0.1228, allocations: 104.5 kB / 464.5 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.1231, allocations: 262.2 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1232, allocations: 16.33 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.1232, allocations: 24.12 kB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004467/0.1236, allocations: 318.3 kB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1237, allocations: 0 / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.1237, allocations: 8 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-05/0.1237, allocations: 19.98 kB / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004161/0.1241, allocations: 303.7 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.1256, allocations: 1.293 MB / 466.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.1259, allocations: 206.4 kB / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.982e-05/0.126, allocations: 45.77 kB / 467 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.126, allocations: 0 / 467 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.1261, allocations: 34.56 kB / 467 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.1261, allocations: 4 kB / 467 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002925/0.1264, allocations: 141.4 kB / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.1264, allocations: 81.05 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.1266, allocations: 203.8 kB / 467.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.1267, allocations: 29.7 kB / 467.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1268, allocations: 179.9 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.1269, allocations: 31.55 kB / 467.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.127, allocations: 37.84 kB / 467.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1271, allocations: 334.8 kB / 468.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.1273, allocations: 39.92 kB / 468.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.1275, allocations: 135.7 kB / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.1278, allocations: 188.6 kB / 468.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.1278, allocations: 11.94 kB / 468.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004498/0.1283, allocations: 201.1 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1283, allocations: 14.48 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.1283, allocations: 0 / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.1284, allocations: 8.438 kB / 468.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.1286, allocations: 47.92 kB / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1286, allocations: 7.938 kB / 468.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.1288, allocations: 27.69 kB / 468.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.1289, allocations: 11.98 kB / 468.7 MB, free: 11.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * 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.0002061/0.1291, allocations: 153.7 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.354e-05/0.1292, allocations: 19.81 kB / 468.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003036/0.1295, allocations: 123 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1295, allocations: 8 kB / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1295, allocations: 0 / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1295, allocations: 0 / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.1306, allocations: 0.5759 MB / 469.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1306, allocations: 7.938 kB / 469.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.1307, allocations: 16.19 kB / 469.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.1307, allocations: 4 kB / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.1308, allocations: 11.88 kB / 469.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.1308, allocations: 7.984 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.1308, allocations: 7.938 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.1311, allocations: 276.2 kB / 469.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.953e-05/0.1312, allocations: 100.9 kB / 470 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.1313, allocations: 7.938 kB / 470 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.1315, allocations: 4 kB / 470 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.1316, allocations: 11.98 kB / 470.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.1316, allocations: 7.938 kB / 470.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.1318, allocations: 161.5 kB / 470.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1318, allocations: 0 / 470.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006222/0.1324, allocations: 51.84 kB / 470.3 MB, free: 9.895 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * 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.0001296/0.1326, allocations: 103.2 kB / 470.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.1329, allocations: 120.5 kB / 470.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1329, allocations: 8.062 kB / 470.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.133, allocations: 47.84 kB / 470.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000658/0.1337, allocations: 33.55 kB / 470.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.1347, allocations: 0.5078 MB / 471.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.1352, allocations: 0.7554 MB / 471.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001741/0.1354, allocations: 41.55 kB / 471.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.1354, allocations: 19.44 kB / 471.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1355, allocations: 0 / 471.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of Templates: time 0.005908/0.1414, allocations: 1.205 MB / 473.1 MB, free: 6.977 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches