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.001407/0.001407, allocations: 111.2 kB / 16.92 MB, free: 5.699 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.001545/0.001545, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.37/1.37, allocations: 222.9 MB / 241.5 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.04 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 60.42 kB / 398.8 MB, free: 34.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 58.06 MB / 456.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004854/0.1157, allocations: 3.438 MB / 460.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1177, allocations: 1.52 MB / 461.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1178, allocations: 4 kB / 461.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007893/0.1186, allocations: 258.9 kB / 462.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005428/0.1191, allocations: 279 kB / 462.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.1194, allocations: 123.6 kB / 462.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.1198, allocations: 335 kB / 462.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/0.12, allocations: 141.8 kB / 462.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.1202, allocations: 143.4 kB / 463.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.1205, allocations: 147.5 kB / 463.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.1205, allocations: 16 kB / 463.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004792/0.121, allocations: 347.1 kB / 463.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1211, allocations: 91.77 kB / 463.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.1212, allocations: 107.5 kB / 463.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004078/0.1216, allocations: 343 kB / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1217, allocations: 0 / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1217, allocations: 3.938 kB / 464.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1217, allocations: 0 / 464.1 MB, free: 0.8164 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.0006098/0.1223, allocations: 0.5103 MB / 464.6 MB, free: 264 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1223, allocations: 15.89 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/0.1232, allocations: 108.5 kB / 464.7 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.1235, allocations: 254.9 kB / 465 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.1236, allocations: 20.33 kB / 465 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.1236, allocations: 24.11 kB / 465 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.1241, allocations: 318.3 kB / 465.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.1241, allocations: 4 kB / 465.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.1242, allocations: 8 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.1242, allocations: 12 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.1246, allocations: 303.7 kB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1262, allocations: 1.304 MB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.1265, allocations: 198.3 kB / 467.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.732e-05/0.1266, allocations: 49.88 kB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.1267, allocations: 4 kB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.1267, allocations: 34.56 kB / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.1267, allocations: 0 / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000324/0.127, allocations: 137.4 kB / 467.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.1271, allocations: 81.05 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.1273, allocations: 207.8 kB / 467.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.1274, allocations: 33.83 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1275, allocations: 171.5 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.1275, allocations: 31.55 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.07e-05/0.1276, allocations: 41.7 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1277, allocations: 326.8 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.717e-05/0.1278, allocations: 39.97 kB / 468.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.128, allocations: 135.7 kB / 468.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.1282, allocations: 200.9 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1282, allocations: 3.938 kB / 468.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002894/0.1285, allocations: 209.5 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1285, allocations: 8 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1285, allocations: 4.062 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1286, allocations: 8 kB / 468.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.1287, allocations: 47.91 kB / 468.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.1287, allocations: 4 kB / 468.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1289, allocations: 27.69 kB / 468.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.1289, allocations: 11.94 kB / 468.9 MB, free: 11.56 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.0001447/0.129, allocations: 157.8 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.1291, allocations: 15.81 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.1293, allocations: 119 kB / 469.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1293, allocations: 0 / 469.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1293, allocations: 0 / 469.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.1293, allocations: 3.984 kB / 469.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.13, allocations: 0.5758 MB / 469.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1301, allocations: 4 kB / 469.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.25e-05/0.1301, allocations: 23.92 kB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.1302, allocations: 7.938 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1302, allocations: 12.25 kB / 469.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1302, allocations: 4 kB / 469.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1302, allocations: 4 kB / 469.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.1305, allocations: 275.9 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/0.1306, allocations: 96.92 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.1306, allocations: 11.92 kB / 470.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.1307, allocations: 8.125 kB / 470.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.478e-05/0.1307, allocations: 12 kB / 470.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.1308, allocations: 11.92 kB / 470.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1309, allocations: 153.5 kB / 470.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 470.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003507/0.1312, allocations: 47.94 kB / 470.5 MB, free: 9.875 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.0001059/0.1314, allocations: 113.5 kB / 470.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.1316, allocations: 131.6 kB / 470.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1316, allocations: 0 / 470.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.897e-05/0.1317, allocations: 45.17 kB / 470.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.1321, allocations: 44.73 kB / 470.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006818/0.1328, allocations: 447.5 kB / 471.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.1331, allocations: 0.7554 MB / 472 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.1332, allocations: 45.5 kB / 472 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.1333, allocations: 15.44 kB / 472 MB, free: 8.215 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1333, allocations: 0 / 472 MB, free: 8.215 MB / 350.1 MB Notification: Performance of Templates: time 0.004057/0.1373, allocations: 1.205 MB / 473.2 MB, free: 7.016 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