Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerWorld.Test.PowerPlantTest2,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.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,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.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001357/0.001357, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.523/1.523, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008041/0.0008041, allocations: 94.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1594/0.1594, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.659e-05/2.662e-05, allocations: 0 / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09548, allocations: 56.32 MB / 474 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3631/0.4586, allocations: 103.5 MB / 0.564 GB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.459, allocations: 82.64 kB / 0.5641 GB, free: 15.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05717/0.5161, allocations: 22.56 MB / 0.5862 GB, free: 12.81 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5162, allocations: 4 kB / 0.5862 GB, free: 12.81 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.015e-05/0.5162, allocations: 12 kB / 0.5862 GB, free: 12.8 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001615/0.5179, allocations: 0.96 MB / 0.5871 GB, free: 11.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.5179, allocations: 12.03 kB / 0.5871 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009243/0.5188, allocations: 182.7 kB / 0.5873 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009495/0.5198, allocations: 0.5915 MB / 0.5879 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.5199, allocations: 46.31 kB / 0.5879 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-05/0.52, allocations: 61.3 kB / 0.588 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.5211, allocations: 0.7079 MB / 0.5887 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.5211, allocations: 4 kB / 0.5887 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.5212, allocations: 21.62 kB / 0.5887 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-05/0.5212, allocations: 33.25 kB / 0.5887 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009129/0.5222, allocations: 0.5692 MB / 0.5893 GB, free: 10.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/0.5261, allocations: 2.976 MB / 0.5922 GB, free: 7.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.5272, allocations: 0.6474 MB / 0.5928 GB, free: 7.164 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.5275, allocations: 197.1 kB / 0.593 GB, free: 7.043 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.5276, allocations: 12.44 kB / 0.593 GB, free: 7.031 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.5276, allocations: 33.75 kB / 0.593 GB, free: 6.992 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.5276, allocations: 0 / 0.593 GB, free: 6.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007645/0.5284, allocations: 468.6 kB / 0.5935 GB, free: 6.656 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.5285, allocations: 111.2 kB / 0.5936 GB, free: 6.523 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005271/0.529, allocations: 0.4883 MB / 0.5941 GB, free: 6.137 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.5291, allocations: 36.2 kB / 0.5941 GB, free: 6.102 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.5293, allocations: 360.8 kB / 0.5945 GB, free: 5.867 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.5294, allocations: 179.3 kB / 0.5946 GB, free: 5.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.588e-05/0.5294, allocations: 11.75 kB / 0.5946 GB, free: 5.711 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.5296, allocations: 384.6 kB / 0.595 GB, free: 5.355 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.5298, allocations: 164.9 kB / 0.5952 GB, free: 5.262 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003527/0.5302, allocations: 315.1 kB / 0.5955 GB, free: 4.984 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.5305, allocations: 213 kB / 0.5957 GB, free: 4.848 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5306, allocations: 4 kB / 0.5957 GB, free: 4.844 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00122/0.5318, allocations: 0.6995 MB / 0.5964 GB, free: 4.312 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005335/0.5323, allocations: 1.397 MB / 0.5977 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.5323, allocations: 4 kB / 0.5977 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.5327, allocations: 120.3 kB / 0.5978 GB, free: 2.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.5333, allocations: 139.3 kB / 0.598 GB, free: 2.602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005955/0.5339, allocations: 0.7088 MB / 0.5987 GB, free: 1.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005004/0.5344, allocations: 86.55 kB / 0.5987 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.5345, allocations: 23.73 kB / 0.5988 GB, free: 1.859 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.5345, allocations: 6.5 kB / 0.5988 GB, free: 1.855 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009592/0.5355, allocations: 0.5726 MB / 0.5993 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.5355, allocations: 4 kB / 0.5993 GB, free: 1.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.5358, allocations: 109.3 kB / 0.5994 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.5363, allocations: 143.2 kB / 0.5996 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.5381, allocations: 2.014 MB / 0.6015 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.5387, allocations: 87.12 kB / 0.6016 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.879e-05/0.5387, allocations: 29.8 kB / 0.6017 GB, free: 15.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.5389, allocations: 138.2 kB / 0.6018 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.539, allocations: 67.16 kB / 0.6019 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008646/0.5399, allocations: 0.5021 MB / 0.6023 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5399, allocations: 4 kB / 0.6023 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.5399, allocations: 0 / 0.6023 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.5399, allocations: 7.984 kB / 0.6024 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.5415, allocations: 1.225 MB / 0.6035 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5415, allocations: 0 / 0.6035 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.5421, allocations: 131.7 kB / 0.6037 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.5421, allocations: 0 / 0.6037 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.5422, allocations: 11.06 kB / 0.6037 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.5422, allocations: 4 kB / 0.6037 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.5422, allocations: 0 / 0.6037 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.5432, allocations: 0.8316 MB / 0.6045 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.5435, allocations: 191.6 kB / 0.6047 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.5436, allocations: 11.56 kB / 0.6047 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.544, allocations: 54.14 kB / 0.6047 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5441, allocations: 38.38 kB / 0.6048 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.5441, allocations: 18.94 kB / 0.6048 GB, free: 12.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004679/0.5446, allocations: 397.4 kB / 0.6052 GB, free: 12.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.593e-06/0.5446, allocations: 112 / 0.6052 GB, free: 12.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000839/0.5455, allocations: 279.1 kB / 0.6054 GB, free: 12.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.5456, allocations: 127.2 kB / 0.6056 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.5471, allocations: 0.8723 MB / 0.6064 GB, free: 11.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5471, allocations: 0 / 0.6064 GB, free: 11.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.5474, allocations: 230.4 kB / 0.6066 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.548, allocations: 123.2 kB / 0.6068 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.5502, allocations: 1.184 MB / 0.6079 GB, free: 9.617 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/0.5507, allocations: 0.9667 MB / 0.6089 GB, free: 8.625 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000632/0.5514, allocations: 174.9 kB / 0.609 GB, free: 8.453 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.5515, allocations: 39.42 kB / 0.6091 GB, free: 8.414 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5515, allocations: 0 / 0.6091 GB, free: 8.414 MB / 410.7 MB Notification: Performance of Templates: time 0.01439/0.5659, allocations: 8.503 MB / 0.6174 GB, free: 15.92 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches