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.001483/0.001483, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.00171/0.00171, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.384/1.384, allocations: 222.9 MB / 242.2 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.1798/0.1798, allocations: 38.03 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 70.81 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08759, allocations: 58.06 MB / 457.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004886/0.09254, allocations: 3.431 MB / 461 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.0946, allocations: 1.531 MB / 462.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.09478, allocations: 4 kB / 462.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007742/0.0956, allocations: 251 kB / 462.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006177/0.09623, allocations: 275 kB / 463 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.09657, allocations: 131.6 kB / 463.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004027/0.09698, allocations: 343 kB / 463.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.0973, allocations: 129.9 kB / 463.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.09756, allocations: 147.4 kB / 463.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.09782, allocations: 139.5 kB / 463.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.09786, allocations: 16 kB / 463.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000537/0.0984, allocations: 347.1 kB / 464.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.09852, allocations: 99.7 kB / 464.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.09865, allocations: 103.5 kB / 464.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.09916, allocations: 351 kB / 464.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.09917, allocations: 0 / 464.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09918, allocations: 0 / 464.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.09919, allocations: 4 kB / 464.8 MB, free: 0.7852 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.0006544/0.09985, allocations: 0.5103 MB / 465.3 MB, free: 232 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.09989, allocations: 11.89 kB / 465.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009382/0.1008, allocations: 108.5 kB / 465.4 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.1012, allocations: 250.8 kB / 465.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.1012, allocations: 20.31 kB / 465.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.1012, allocations: 28.05 kB / 465.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.1017, allocations: 314.4 kB / 466 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1017, allocations: 0 / 466 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.1018, allocations: 11.98 kB / 466 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.1018, allocations: 19.92 kB / 466 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/0.1022, allocations: 299.8 kB / 466.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.1039, allocations: 1.297 MB / 467.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.1042, allocations: 202.2 kB / 467.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.944e-05/0.1042, allocations: 45.77 kB / 467.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1043, allocations: 7.984 kB / 467.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1043, allocations: 34.69 kB / 467.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.1043, allocations: 0 / 467.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002899/0.1046, allocations: 141.4 kB / 468.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.1047, allocations: 81.11 kB / 468.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.1048, allocations: 211.9 kB / 468.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1049, allocations: 25.7 kB / 468.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.897e-05/0.105, allocations: 171.5 kB / 468.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.105, allocations: 27.56 kB / 468.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/0.1051, allocations: 45.7 kB / 468.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1052, allocations: 326.8 kB / 468.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.575e-05/0.1053, allocations: 44.3 kB / 469 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.1054, allocations: 135.7 kB / 469.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.1056, allocations: 200.6 kB / 469.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1056, allocations: 3.938 kB / 469.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002898/0.1059, allocations: 209.2 kB / 469.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1059, allocations: 4 kB / 469.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.106, allocations: 4 kB / 469.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.106, allocations: 8.031 kB / 469.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.1061, allocations: 47.91 kB / 469.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1062, allocations: 4 kB / 469.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1063, allocations: 27.69 kB / 469.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1063, allocations: 15.98 kB / 469.6 MB, free: 11.54 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.0001203/0.1064, allocations: 154 kB / 469.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.1065, allocations: 15.81 kB / 469.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.1067, allocations: 127 kB / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.1067, allocations: 0 / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1067, allocations: 4 kB / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1067, allocations: 0 / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006725/0.1074, allocations: 0.5758 MB / 470.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1074, allocations: 0 / 470.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.918e-05/0.1075, allocations: 23.92 kB / 470.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.1075, allocations: 12.25 kB / 470.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.1075, allocations: 7.938 kB / 470.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.1075, allocations: 4 kB / 470.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.1075, allocations: 8.172 kB / 470.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.1078, allocations: 271.9 kB / 470.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.1079, allocations: 100.8 kB / 470.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.1079, allocations: 7.938 kB / 470.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.108, allocations: 16.06 kB / 470.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.1081, allocations: 15.92 kB / 470.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1081, allocations: 8 kB / 470.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.1082, allocations: 157.5 kB / 471.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1082, allocations: 0 / 471.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.1086, allocations: 47.94 kB / 471.1 MB, free: 9.836 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 9.135e-05/0.1087, allocations: 99.25 kB / 471.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.1089, allocations: 127.6 kB / 471.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1089, allocations: 0 / 471.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.169e-05/0.109, allocations: 53.34 kB / 471.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.1094, allocations: 33.73 kB / 471.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006771/0.1101, allocations: 484.9 kB / 471.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.1104, allocations: 0.7554 MB / 472.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.1104, allocations: 19.44 kB / 472.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1104, allocations: 4 kB / 472.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of Templates: time 0.003878/0.1143, allocations: 2.194 MB / 474.9 MB, free: 5.988 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