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.001756/0.001756, allocations: 111.6 kB / 17.28 MB, free: 6.199 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.00233/0.00233, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.622/2.622, allocations: 222.9 MB / 241.9 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.446/0.446, allocations: 38.03 MB / 330.1 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002911/0.002911, allocations: 63.98 kB / 398.9 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2155, allocations: 58.06 MB / 457 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.0103/0.2259, allocations: 3.678 MB / 460.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.2395, allocations: 1.566 MB / 462.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000417/0.24, allocations: 11.94 kB / 462.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.2416, allocations: 242 kB / 462.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.2431, allocations: 263.2 kB / 462.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007281/0.2439, allocations: 111.7 kB / 462.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008306/0.2447, allocations: 343 kB / 463.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006486/0.2454, allocations: 149.9 kB / 463.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004812/0.2459, allocations: 147.4 kB / 463.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004605/0.2464, allocations: 159.5 kB / 463.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.2465, allocations: 16 kB / 463.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009661/0.2475, allocations: 343.1 kB / 464 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.2477, allocations: 95.77 kB / 464.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.2479, allocations: 107.5 kB / 464.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006982/0.2486, allocations: 275.4 kB / 464.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.2487, allocations: 0 / 464.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2487, allocations: 4 kB / 464.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.2487, allocations: 3.938 kB / 464.5 MB, free: 0.9102 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.001231/0.2499, allocations: 0.5064 MB / 465 MB, free: 364 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.25, allocations: 15.89 kB / 465 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003693/0.2537, allocations: 104.5 kB / 465.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006454/0.2544, allocations: 250.9 kB / 465.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.2545, allocations: 16.33 kB / 465.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.2546, allocations: 24.11 kB / 465.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009175/0.2555, allocations: 322.3 kB / 465.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2555, allocations: 0 / 465.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.836e-05/0.2556, allocations: 15.98 kB / 465.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-05/0.2557, allocations: 15.98 kB / 465.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008465/0.2565, allocations: 303.7 kB / 466 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003205/0.2598, allocations: 1.293 MB / 467.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.2603, allocations: 202.3 kB / 467.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.2605, allocations: 45.7 kB / 467.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.2605, allocations: 3.984 kB / 467.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.2606, allocations: 34.56 kB / 467.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.725e-06/0.2606, allocations: 0 / 467.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000599/0.2612, allocations: 145.5 kB / 467.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.2613, allocations: 81.09 kB / 467.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.2618, allocations: 207.8 kB / 468 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.2619, allocations: 25.7 kB / 468 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.2622, allocations: 175.5 kB / 468.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.725e-05/0.2622, allocations: 27.56 kB / 468.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.2625, allocations: 45.7 kB / 468.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.2627, allocations: 327 kB / 468.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.2629, allocations: 39.97 kB / 468.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.2631, allocations: 135.6 kB / 468.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004517/0.2636, allocations: 197 kB / 469 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.2636, allocations: 8 kB / 469 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000634/0.2643, allocations: 209.1 kB / 469.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.2643, allocations: 8 kB / 469.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.2644, allocations: 0 / 469.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.857e-05/0.2644, allocations: 8.047 kB / 469.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.2648, allocations: 52.33 kB / 469.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.2648, allocations: 11.94 kB / 469.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.2651, allocations: 27.69 kB / 469.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.2651, allocations: 8 kB / 469.3 MB, free: 11.66 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.0004009/0.2655, allocations: 157.7 kB / 469.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.405e-05/0.2656, allocations: 15.81 kB / 469.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000416/0.2661, allocations: 119 kB / 469.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2661, allocations: 4 kB / 469.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.2661, allocations: 0 / 469.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2661, allocations: 4 kB / 469.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.2677, allocations: 0.5798 MB / 470.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.2677, allocations: 4 kB / 470.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.2679, allocations: 19.98 kB / 470.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.2679, allocations: 4 kB / 470.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.2679, allocations: 7.938 kB / 470.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.028e-05/0.2679, allocations: 3.938 kB / 470.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.268, allocations: 4 kB / 470.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005018/0.2685, allocations: 284 kB / 470.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.2686, allocations: 100.8 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.348e-05/0.2687, allocations: 7.938 kB / 470.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.2689, allocations: 8 kB / 470.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.269, allocations: 12.11 kB / 470.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.269, allocations: 4 kB / 470.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002643/0.2693, allocations: 165.4 kB / 470.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2693, allocations: 4 kB / 470.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000658/0.27, allocations: 51.84 kB / 470.8 MB, free: 9.961 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.0002097/0.2702, allocations: 95.25 kB / 470.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004006/0.2707, allocations: 124.3 kB / 471.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.2707, allocations: 192 / 471.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.2708, allocations: 51.84 kB / 471.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.2715, allocations: 30.73 kB / 471.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.2729, allocations: 0.5485 MB / 471.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.2735, allocations: 0.7554 MB / 472.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.2736, allocations: 19.44 kB / 472.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2736, allocations: 0 / 472.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of Templates: time 0.008225/0.2819, allocations: 2.194 MB / 474.6 MB, free: 6.047 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches