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.00251/0.00251, allocations: 112.8 kB / 17.68 MB, free: 5.332 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.001888/0.001888, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.695/1.695, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2536/0.2536, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 66.06 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2253, allocations: 58.07 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.01648/0.2419, allocations: 3.43 MB / 461.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.2454, allocations: 1.52 MB / 463.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.2457, allocations: 15.94 kB / 463.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.2469, allocations: 252.8 kB / 463.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009342/0.2478, allocations: 274.9 kB / 463.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005084/0.2483, allocations: 127.6 kB / 463.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005651/0.2489, allocations: 335 kB / 464.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004411/0.2494, allocations: 141.9 kB / 464.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.2497, allocations: 143.3 kB / 464.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.25, allocations: 147.4 kB / 464.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.2501, allocations: 16 kB / 464.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007056/0.2508, allocations: 335.2 kB / 465 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.251, allocations: 103.7 kB / 465.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.2511, allocations: 107.5 kB / 465.2 MB, free: 412 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005884/0.2517, allocations: 351 kB / 465.6 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.2517, allocations: 0 / 465.6 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd: time 7.674e-06/0.2518, allocations: 4 kB / 465.6 MB, free: 56 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.2518, allocations: 0 / 465.6 MB, free: 56 kB / 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.0009701/0.2528, allocations: 0.5103 MB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.2528, allocations: 11.89 kB / 466.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.2541, allocations: 108.5 kB / 466.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.2546, allocations: 262.8 kB / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.2546, allocations: 16.33 kB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.2547, allocations: 24.12 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.2553, allocations: 326.3 kB / 466.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.2553, allocations: 0 / 466.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.2554, allocations: 8 kB / 466.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.677e-05/0.2554, allocations: 15.98 kB / 466.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005132/0.2559, allocations: 303.7 kB / 467.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.2581, allocations: 1.289 MB / 468.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.2585, allocations: 210.2 kB / 468.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.084e-05/0.2586, allocations: 37.77 kB / 468.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.2586, allocations: 0 / 468.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.2587, allocations: 42.56 kB / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.2587, allocations: 0 / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003966/0.2591, allocations: 137.5 kB / 468.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.2592, allocations: 81.09 kB / 468.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.2594, allocations: 207.8 kB / 469.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.2595, allocations: 29.7 kB / 469.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.2596, allocations: 175.5 kB / 469.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.2597, allocations: 31.94 kB / 469.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.2598, allocations: 45.83 kB / 469.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.26, allocations: 326.8 kB / 469.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.224e-05/0.2601, allocations: 35.97 kB / 469.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.2603, allocations: 143.6 kB / 469.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.2605, allocations: 196.7 kB / 470.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.2606, allocations: 7.938 kB / 470.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003202/0.2609, allocations: 201.1 kB / 470.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.2609, allocations: 8 kB / 470.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.2609, allocations: 4.438 kB / 470.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.097e-05/0.261, allocations: 8 kB / 470.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2612, allocations: 51.91 kB / 470.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.2612, allocations: 4 kB / 470.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.2613, allocations: 23.69 kB / 470.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.2613, allocations: 12 kB / 470.4 MB, free: 10.8 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.0002156/0.2616, allocations: 157.7 kB / 470.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.182e-05/0.2616, allocations: 15.81 kB / 470.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.2619, allocations: 123 kB / 470.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2619, allocations: 4 kB / 470.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.2619, allocations: 0 / 470.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.2619, allocations: 0 / 470.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008365/0.2628, allocations: 0.5797 MB / 471.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2628, allocations: 4 kB / 471.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.561e-05/0.2629, allocations: 19.98 kB / 471.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-06/0.2629, allocations: 4.188 kB / 471.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.2629, allocations: 11.88 kB / 471.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.2629, allocations: 7.875 kB / 471.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2629, allocations: 4 kB / 471.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.2634, allocations: 284.2 kB / 471.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-05/0.2635, allocations: 96.91 kB / 471.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.2635, allocations: 11.94 kB / 471.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.2636, allocations: 4 kB / 471.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.2637, allocations: 15.92 kB / 471.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2637, allocations: 8 kB / 471.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2639, allocations: 157.5 kB / 471.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2639, allocations: 0 / 471.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.2643, allocations: 47.94 kB / 471.9 MB, free: 9.105 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.0001806/0.2645, allocations: 99.28 kB / 472 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.2648, allocations: 132.3 kB / 472.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2648, allocations: 0 / 472.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.53e-05/0.2649, allocations: 47.84 kB / 472.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.2654, allocations: 35.92 kB / 472.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009511/0.2664, allocations: 444.1 kB / 472.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004699/0.2669, allocations: 0.7554 MB / 473.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.267, allocations: 33.52 kB / 473.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.2671, allocations: 19.44 kB / 473.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2671, allocations: 3.938 kB / 473.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of Templates: time 0.005386/0.2724, allocations: 1.213 MB / 474.7 MB, free: 6.258 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 -s cvode -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