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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001157, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 102.3 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1959/0.1959, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.402, allocations: 55.23 MB / 477.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005457/0.4075, allocations: 3.686 MB / 480.8 MB, free: 7.309 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.4098, allocations: 1.632 MB / 482.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.41, allocations: 10.78 kB / 482.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000847/0.4108, allocations: 240 kB / 482.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005971/0.4114, allocations: 256 kB / 482.9 MB, free: 5.891 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.4117, allocations: 127.7 kB / 483 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006272/0.4124, allocations: 0.56 MB / 483.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.4127, allocations: 139.9 kB / 483.7 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.413, allocations: 133.5 kB / 483.9 MB, free: 5.539 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.4132, allocations: 154.5 kB / 484 MB, free: 5.484 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.4133, allocations: 14.72 kB / 484 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006554/0.4139, allocations: 422.7 kB / 484.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.4141, allocations: 90.19 kB / 484.5 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.4142, allocations: 103.9 kB / 484.6 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005654/0.4148, allocations: 371.2 kB / 485 MB, free: 5.117 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4148, allocations: 0 / 485 MB, free: 5.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4148, allocations: 0 / 485 MB, free: 5.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.4148, allocations: 1.062 kB / 485 MB, free: 5.117 MB / 314.7 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.0006994/0.4155, allocations: 0.5147 MB / 485.5 MB, free: 4.648 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.4156, allocations: 14.78 kB / 485.5 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009242/0.4165, allocations: 102.5 kB / 485.6 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.4168, allocations: 259.4 kB / 485.9 MB, free: 4.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.4168, allocations: 19.23 kB / 485.9 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.4169, allocations: 20.31 kB / 485.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.4174, allocations: 325.2 kB / 486.2 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.4174, allocations: 1.625 kB / 486.2 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.4174, allocations: 10.19 kB / 486.2 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-05/0.4175, allocations: 13.86 kB / 486.3 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.418, allocations: 305.5 kB / 486.6 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.4197, allocations: 1.292 MB / 487.8 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.42, allocations: 200.3 kB / 488 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.42, allocations: 43.3 kB / 488.1 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.4201, allocations: 6.172 kB / 488.1 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.4201, allocations: 36.48 kB / 488.1 MB, free: 2.859 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.4201, allocations: 3.938 kB / 488.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003012/0.4204, allocations: 138.9 kB / 488.3 MB, free: 2.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.4205, allocations: 78.48 kB / 488.3 MB, free: 2.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.4207, allocations: 214.5 kB / 488.6 MB, free: 2.551 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.4207, allocations: 35.08 kB / 488.6 MB, free: 2.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.4208, allocations: 165.9 kB / 488.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.4208, allocations: 36.62 kB / 488.8 MB, free: 2.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.4209, allocations: 38.19 kB / 488.8 MB, free: 2.312 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.19e-05/0.421, allocations: 329.6 kB / 489.1 MB, free: 1.992 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.978e-05/0.421, allocations: 35.09 kB / 489.2 MB, free: 1.984 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.4211, allocations: 140.7 kB / 489.3 MB, free: 1.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.4213, allocations: 192.3 kB / 489.5 MB, free: 1.668 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4214, allocations: 1.344 kB / 489.5 MB, free: 1.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002724/0.4216, allocations: 208.4 kB / 489.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4217, allocations: 6.875 kB / 489.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.4217, allocations: 4.578 kB / 489.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.4217, allocations: 4.594 kB / 489.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.4219, allocations: 50.2 kB / 489.8 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.4219, allocations: 6.516 kB / 489.8 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.422, allocations: 23.66 kB / 489.8 MB, free: 1.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.885e-05/0.422, allocations: 13.5 kB / 489.8 MB, free: 1.539 MB / 314.7 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.0001066/0.4221, allocations: 166.9 kB / 490 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.4222, allocations: 15.94 kB / 490 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002157/0.4224, allocations: 120.8 kB / 490.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.4224, allocations: 2.375 kB / 490.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4224, allocations: 0 / 490.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4224, allocations: 1.156 kB / 490.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000679/0.4231, allocations: 0.5733 MB / 490.7 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4231, allocations: 2.812 kB / 490.7 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.595e-05/0.4232, allocations: 18.05 kB / 490.7 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.4232, allocations: 7.844 kB / 490.7 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.4232, allocations: 17.05 kB / 490.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.4233, allocations: 7.047 kB / 490.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4233, allocations: 3.781 kB / 490.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004491/0.4237, allocations: 0.8812 MB / 491.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.619e-05/0.4238, allocations: 94.86 kB / 491.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.4238, allocations: 8.594 kB / 491.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.424, allocations: 11.98 kB / 491.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.159e-05/0.424, allocations: 12.42 kB / 491.7 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.424, allocations: 6.094 kB / 491.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001517/0.4242, allocations: 155.2 kB / 491.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4242, allocations: 0 / 491.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004288/0.4246, allocations: 52.91 kB / 492 MB, free: 15.74 MB / 330.7 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.0001076/0.4247, allocations: 103.4 kB / 492.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.4249, allocations: 113 kB / 492.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.425, allocations: 3.938 kB / 492.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.688e-05/0.425, allocations: 53.56 kB / 492.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.4255, allocations: 32.72 kB / 492.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.4264, allocations: 0.6491 MB / 492.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.4268, allocations: 0.7594 MB / 493.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.427, allocations: 33.11 kB / 493.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.427, allocations: 17.12 kB / 493.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.427, allocations: 0 / 493.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of Templates: time 0.004272/0.4313, allocations: 1.196 MB / 494.9 MB, free: 14.21 MB / 330.7 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@2/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