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.0008703/0.0008702, allocations: 95.47 kB / 16.31 MB, free: 5.996 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.001067/0.001067, allocations: 188.5 kB / 17.2 MB, free: 5.91 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.274/1.274, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2678/0.2678, allocations: 38.07 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003348, allocations: 8 kB / 400 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2568, allocations: 59.17 MB / 459.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00321/0.26, allocations: 3.09 MB / 462.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.2617, allocations: 1.425 MB / 463.6 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.2618, allocations: 10.12 kB / 463.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.262, allocations: 36.05 kB / 463.7 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.2624, allocations: 180.8 kB / 463.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.2626, allocations: 99.81 kB / 464 MB, free: 27.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.2628, allocations: 162.3 kB / 464.1 MB, free: 27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005272/0.2634, allocations: 311.7 kB / 464.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.2635, allocations: 97.5 kB / 464.5 MB, free: 26.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.2637, allocations: 79.25 kB / 464.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.2637, allocations: 12.44 kB / 464.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.264, allocations: 167.1 kB / 464.8 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.794e-05/0.2641, allocations: 78.75 kB / 464.8 MB, free: 26.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.2642, allocations: 60.58 kB / 464.9 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.2645, allocations: 259 kB / 465.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.2645, allocations: 0 / 465.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2645, allocations: 1.75 kB / 465.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2645, allocations: 0 / 465.2 MB, free: 26.52 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0004824/0.265, allocations: 480.1 kB / 465.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.2651, allocations: 9.312 kB / 465.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000899/0.266, allocations: 119 kB / 465.8 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.2663, allocations: 255.4 kB / 466 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.2663, allocations: 22.91 kB / 466 MB, free: 25.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.2663, allocations: 19.05 kB / 466 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004935/0.2668, allocations: 320 kB / 466.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2669, allocations: 0 / 466.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.2669, allocations: 6.969 kB / 466.4 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/0.2669, allocations: 18.05 kB / 466.4 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004427/0.2674, allocations: 300.4 kB / 466.7 MB, free: 25.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.2689, allocations: 1.29 MB / 468 MB, free: 24.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.2691, allocations: 203.1 kB / 468.2 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.2692, allocations: 2.281 kB / 468.2 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.2692, allocations: 43.83 kB / 468.2 MB, free: 24.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.2692, allocations: 0 / 468.2 MB, free: 24.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002963/0.2695, allocations: 137.6 kB / 468.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.2695, allocations: 79.25 kB / 468.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.2697, allocations: 213.6 kB / 468.6 MB, free: 24.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.2697, allocations: 25.8 kB / 468.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.537e-05/0.2698, allocations: 178.9 kB / 468.8 MB, free: 23.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.2699, allocations: 31.61 kB / 468.9 MB, free: 23.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-06/0.2699, allocations: 5.031 kB / 468.9 MB, free: 23.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.967e-05/0.2699, allocations: 328.5 kB / 469.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.224e-05/0.27, allocations: 38.66 kB / 469.2 MB, free: 23.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.006e-05/0.2701, allocations: 140.4 kB / 469.4 MB, free: 23.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.672e-05/0.2702, allocations: 63.5 kB / 469.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2702, allocations: 1.812 kB / 469.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002524/0.2704, allocations: 203.6 kB / 469.6 MB, free: 23.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2705, allocations: 6.438 kB / 469.6 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.2705, allocations: 12.06 kB / 469.6 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.2705, allocations: 5.312 kB / 469.6 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.2707, allocations: 53.78 kB / 469.7 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.2707, allocations: 5.531 kB / 469.7 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2708, allocations: 24.77 kB / 469.7 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2708, allocations: 8.438 kB / 469.7 MB, free: 23.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/0.2709, allocations: 160.6 kB / 469.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.271, allocations: 15.72 kB / 469.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.2711, allocations: 118.8 kB / 470 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2712, allocations: 5.172 kB / 470 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2712, allocations: 1.766 kB / 470 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2712, allocations: 0.75 kB / 470 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005956/0.2718, allocations: 0.5691 MB / 470.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2718, allocations: 2.859 kB / 470.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.2719, allocations: 21.8 kB / 470.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.2719, allocations: 5 kB / 470.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.2719, allocations: 16 kB / 470.6 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.2719, allocations: 3.859 kB / 470.7 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2719, allocations: 3.688 kB / 470.7 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.2722, allocations: 395.8 kB / 471 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-05/0.2722, allocations: 107 kB / 471.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.2723, allocations: 4.578 kB / 471.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.2724, allocations: 12.16 kB / 471.2 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.2724, allocations: 17.11 kB / 471.2 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.2724, allocations: 5 kB / 471.2 MB, free: 21.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.2726, allocations: 153.7 kB / 471.3 MB, free: 21.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2726, allocations: 0 / 471.3 MB, free: 21.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003503/0.2729, allocations: 53.31 kB / 471.4 MB, free: 21.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.098e-05/0.273, allocations: 102.9 kB / 471.5 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.2732, allocations: 112 kB / 471.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.2732, allocations: 4 kB / 471.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.485e-05/0.2733, allocations: 44.17 kB / 471.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.2736, allocations: 34.78 kB / 471.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005904/0.2742, allocations: 0.5115 MB / 472.2 MB, free: 21.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.2744, allocations: 0.7609 MB / 473 MB, free: 20.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.2745, allocations: 38.72 kB / 473 MB, free: 20.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.352e-05/0.2746, allocations: 17.06 kB / 473 MB, free: 20.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2746, allocations: 0 / 473 MB, free: 20.54 MB / 350.1 MB Notification: Performance of Templates: time 0.003378/0.278, allocations: 1.101 MB / 474.1 MB, free: 20.43 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches