Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008804, allocations: 92.41 kB / 16.3 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.000945/0.0009451, allocations: 183.1 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.223/1.223, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2643/0.2643, allocations: 38.08 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.0002878, allocations: 8 kB / 400 MB, free: 9.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2609, allocations: 59.16 MB / 459.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006183/0.2671, allocations: 5.593 MB / 464.7 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004431/0.2716, allocations: 2.696 MB / 467.4 MB, free: 24.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.2728, allocations: 39.31 kB / 467.5 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006764/0.2735, allocations: 113.7 kB / 467.6 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001652/0.2752, allocations: 401.9 kB / 468 MB, free: 23.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.2768, allocations: 444.9 kB / 468.4 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.2782, allocations: 0.6413 MB / 469 MB, free: 23.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.2795, allocations: 0.7066 MB / 469.7 MB, free: 22.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007112/0.2802, allocations: 337.3 kB / 470.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008747/0.2811, allocations: 315.7 kB / 470.4 MB, free: 22.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002877/0.2814, allocations: 28.03 kB / 470.4 MB, free: 22.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2825, allocations: 246.7 kB / 470.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004474/0.283, allocations: 177.7 kB / 470.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004553/0.2834, allocations: 169.5 kB / 471 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.2852, allocations: 0.9021 MB / 471.9 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2852, allocations: 0 / 471.9 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2852, allocations: 1.25 kB / 471.9 MB, free: 22.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.585e-05/0.2853, allocations: 0 / 471.9 MB, free: 22.1 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002976/0.2883, allocations: 1.067 MB / 473 MB, free: 21.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2883, allocations: 13 kB / 473 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.2898, allocations: 217.9 kB / 473.2 MB, free: 21.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.2908, allocations: 0.5848 MB / 473.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.679e-05/0.2909, allocations: 59.97 kB / 473.8 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.291, allocations: 65.5 kB / 473.9 MB, free: 20.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2926, allocations: 0.8774 MB / 474.8 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.2926, allocations: 9.281 kB / 474.8 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-05/0.2927, allocations: 25.92 kB / 474.8 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-05/0.2927, allocations: 40.2 kB / 474.8 MB, free: 20.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.2941, allocations: 0.7959 MB / 475.6 MB, free: 20.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.2982, allocations: 3.272 MB / 478.9 MB, free: 17.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2997, allocations: 1.002 MB / 479.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.2998, allocations: 7.312 kB / 479.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2998, allocations: 42.83 kB / 480 MB, free: 16.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 3.196e-06/0.2998, allocations: 7.984 kB / 480 MB, free: 16.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004336/0.3042, allocations: 2.603 MB / 482.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3042, allocations: 110.9 kB / 482.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000697/0.3049, allocations: 0.5841 MB / 483.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.305, allocations: 40.45 kB / 483.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.3051, allocations: 362.5 kB / 483.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.3053, allocations: 223.2 kB / 483.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.3053, allocations: 15.34 kB / 483.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.166e-05/0.3054, allocations: 378.6 kB / 484.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.3059, allocations: 280.5 kB / 484.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005581/0.3065, allocations: 425.5 kB / 484.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005761/0.3071, allocations: 324.7 kB / 485.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3071, allocations: 1.938 kB / 485.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00127/0.3084, allocations: 0.8494 MB / 486.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002306/0.3086, allocations: 1.49 MB / 487.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3086, allocations: 4 kB / 487.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002258/0.3089, allocations: 68.75 kB / 487.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.3095, allocations: 175.8 kB / 487.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.3107, allocations: 1.689 MB / 489.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.3112, allocations: 67.94 kB / 489.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-05/0.3112, allocations: 24 kB / 489.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/0.3112, allocations: 4 kB / 489.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/0.3124, allocations: 0.7403 MB / 490.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3124, allocations: 4 kB / 490.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.3125, allocations: 60.8 kB / 490.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.3132, allocations: 180 kB / 490.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009791/0.3141, allocations: 1.684 MB / 492.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004051/0.3146, allocations: 52.02 kB / 492.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.3146, allocations: 35.94 kB / 492.4 MB, free: 5.777 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003553/0.315, allocations: 313 kB / 492.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.3151, allocations: 71.16 kB / 492.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.3164, allocations: 0.8112 MB / 493.6 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.3164, allocations: 8.281 kB / 493.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.3164, allocations: 0 / 493.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.3164, allocations: 3.984 kB / 493.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.3196, allocations: 2.186 MB / 495.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3196, allocations: 11.94 kB / 495.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.3201, allocations: 139.9 kB / 495.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/0.3203, allocations: 56.81 kB / 496 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.3203, allocations: 23.98 kB / 496 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009119/0.3212, allocations: 1.65 MB / 497.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3213, allocations: 11.94 kB / 497.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.3234, allocations: 1.658 MB / 499.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.3237, allocations: 204.2 kB / 499.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/0.3238, allocations: 23.98 kB / 499.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3242, allocations: 55.95 kB / 499.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3244, allocations: 71.81 kB / 499.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.544e-05/0.3244, allocations: 24 kB / 499.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005461/0.325, allocations: 415 kB / 0.4884 GB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.325, allocations: 7.938 kB / 0.4884 GB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3261, allocations: 252 kB / 0.4886 GB, free: 13.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * 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 (63): * Single equations (assignments): 61 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001936/0.3263, allocations: 127.3 kB / 0.4887 GB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002345/0.3287, allocations: 1.286 MB / 0.49 GB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3287, allocations: 0 / 0.49 GB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008129/0.3295, allocations: 0.5077 MB / 0.4905 GB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.3302, allocations: 150.8 kB / 0.4906 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.3329, allocations: 2.001 MB / 0.4926 GB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.3334, allocations: 1.002 MB / 0.4936 GB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004728/0.3339, allocations: 148.8 kB / 0.4937 GB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.334, allocations: 51.42 kB / 0.4938 GB, free: 7.789 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3341, allocations: 0 / 0.4938 GB, free: 7.789 MB / 366.1 MB Notification: Performance of Templates: time 0.01209/0.3461, allocations: 7.629 MB / 0.5012 GB, free: 200 kB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches