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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001952/0.001952, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.55/1.55, allocations: 177.2 MB / 204.6 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.3061/0.3061, allocations: 29.41 MB / 290.5 MB, free: 2.41 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.686e-05/2.859e-05, allocations: 6.312 kB / 368.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00571/0.005738, allocations: 3.524 MB / 372.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002626/0.008365, allocations: 1.516 MB / 373.9 MB, free: 6.23 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.008502, allocations: 11.94 kB / 373.9 MB, free: 6.219 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009503/0.009452, allocations: 254.9 kB / 374.2 MB, free: 5.969 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000751/0.0102, allocations: 290.6 kB / 374.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.01057, allocations: 131.4 kB / 374.6 MB, free: 5.555 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.01105, allocations: 346.9 kB / 374.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.01135, allocations: 110.1 kB / 375 MB, free: 5.109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004011/0.01176, allocations: 203.3 kB / 375.2 MB, free: 4.91 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.01206, allocations: 147.5 kB / 375.4 MB, free: 4.766 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.01209, allocations: 12 kB / 375.4 MB, free: 4.754 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005214/0.01261, allocations: 291 kB / 375.7 MB, free: 4.469 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.01276, allocations: 111.7 kB / 375.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.01289, allocations: 75.83 kB / 375.9 MB, free: 4.285 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000594/0.01348, allocations: 366.9 kB / 376.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.01349, allocations: 0 / 376.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01349, allocations: 0 / 376.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.0135, allocations: 0 / 376.2 MB, free: 3.926 MB / 346.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.0008397/0.01434, allocations: 0.5536 MB / 376.8 MB, free: 3.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.01438, allocations: 15.98 kB / 376.8 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009236/0.0153, allocations: 156.5 kB / 376.9 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.01571, allocations: 204.8 kB / 377.1 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.01573, allocations: 16.36 kB / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.01577, allocations: 16.38 kB / 377.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.01622, allocations: 252.3 kB / 377.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.01624, allocations: 7.875 kB / 377.4 MB, free: 2.629 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.01627, allocations: 11.98 kB / 377.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.0163, allocations: 16 kB / 377.5 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003485/0.01665, allocations: 147.8 kB / 377.6 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.01867, allocations: 1.37 MB / 379 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.01898, allocations: 110.3 kB / 379.1 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.709e-05/0.01906, allocations: 39.42 kB / 379.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.01908, allocations: 4 kB / 379.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.01913, allocations: 37.39 kB / 379.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.01913, allocations: 0 / 379.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003213/0.01945, allocations: 121.3 kB / 379.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.01952, allocations: 81.11 kB / 379.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.0198, allocations: 273.6 kB / 379.6 MB, free: 264 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.01982, allocations: 25.7 kB / 379.6 MB, free: 232 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.02001, allocations: 226.6 kB / 379.9 MB, free: 0 / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.02007, allocations: 40 kB / 379.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.02016, allocations: 55.36 kB / 380 MB, free: 15.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003151/0.02047, allocations: 0.5001 MB / 380.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.376e-05/0.02053, allocations: 31.92 kB / 380.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.02073, allocations: 165.5 kB / 380.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.02101, allocations: 211.1 kB / 380.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.02102, allocations: 0 / 380.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003117/0.02133, allocations: 197.2 kB / 381.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.02134, allocations: 7.75 kB / 381.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.02135, allocations: 4 kB / 381.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.02137, allocations: 4 kB / 381.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.02154, allocations: 47.92 kB / 381.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.02156, allocations: 7.984 kB / 381.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.02166, allocations: 23.84 kB / 381.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.02168, allocations: 8.375 kB / 381.2 MB, free: 14.56 MB / 362.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.0001607/0.02184, allocations: 176.5 kB / 381.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.497e-05/0.02189, allocations: 23.84 kB / 381.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.02209, allocations: 99.06 kB / 381.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.0221, allocations: 0 / 381.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.0221, allocations: 4 kB / 381.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.02211, allocations: 0 / 381.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008033/0.02291, allocations: 0.5453 MB / 382 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.02292, allocations: 4 kB / 382 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.255e-05/0.023, allocations: 23.92 kB / 382 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.02301, allocations: 4 kB / 382 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.02302, allocations: 4 kB / 382 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.02302, allocations: 4 kB / 382 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02303, allocations: 0 / 382 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.0234, allocations: 348.5 kB / 382.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.586e-05/0.02343, allocations: 20.08 kB / 382.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.02346, allocations: 8 kB / 382.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.674e-05/0.02356, allocations: 4 kB / 382.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.0236, allocations: 23.86 kB / 382.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.02361, allocations: 4.047 kB / 382.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001654/0.02378, allocations: 183.1 kB / 382.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02378, allocations: 0 / 382.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003337/0.02411, allocations: 51.89 kB / 382.7 MB, free: 12.89 MB / 362.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.000138/0.02425, allocations: 99.17 kB / 382.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002538/0.0245, allocations: 119.4 kB / 382.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.02451, allocations: 0 / 382.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.052e-05/0.02459, allocations: 44.92 kB / 382.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.02498, allocations: 38.66 kB / 383 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008056/0.02579, allocations: 451.2 kB / 383.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.02597, allocations: 135.9 kB / 383.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.146e-05/0.02606, allocations: 33.45 kB / 383.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.939e-05/0.02611, allocations: 16.5 kB / 383.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02611, allocations: 0 / 383.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of Templates: time 0.004458/0.03057, allocations: 1.091 MB / 384.7 MB, free: 10.8 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.68285347300116]