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.001063/0.001063, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.25/1.25, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008398/0.0008398, allocations: 89.08 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1527/0.1527, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002928, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2549, allocations: 56.32 MB / 480.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1336/0.3885, allocations: 103.6 MB / 0.5702 GB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.3889, allocations: 95.94 kB / 0.5703 GB, free: 14.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05854/0.4474, allocations: 22.64 MB / 0.5924 GB, free: 7.875 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4475, allocations: 4 kB / 0.5924 GB, free: 7.871 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.519e-05/0.4475, allocations: 15.94 kB / 0.5925 GB, free: 7.855 MB / 426.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.002147/0.4497, allocations: 1.077 MB / 0.5935 GB, free: 6.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4498, allocations: 12.03 kB / 0.5935 GB, free: 6.719 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009427/0.4507, allocations: 182.7 kB / 0.5937 GB, free: 6.539 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.4518, allocations: 0.6051 MB / 0.5943 GB, free: 5.891 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-05/0.4519, allocations: 57.25 kB / 0.5943 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.485e-05/0.452, allocations: 60 kB / 0.5944 GB, free: 5.777 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.4533, allocations: 0.7678 MB / 0.5951 GB, free: 4.969 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.4534, allocations: 3.938 kB / 0.5951 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.996e-05/0.4534, allocations: 24 kB / 0.5952 GB, free: 4.941 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.792e-05/0.4535, allocations: 41.25 kB / 0.5952 GB, free: 4.902 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.4548, allocations: 0.6648 MB / 0.5959 GB, free: 4.234 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004053/0.4589, allocations: 2.965 MB / 0.5988 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4606, allocations: 0.781 MB / 0.5995 GB, free: 336 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.4606, allocations: 8.5 kB / 0.5995 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.4607, allocations: 43 kB / 0.5996 GB, free: 276 kB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 2.465e-06/0.4607, allocations: 0 / 0.5996 GB, free: 276 kB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001735/0.4624, allocations: 0.7814 MB / 0.6003 GB, free: 15.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.048e-05/0.4625, allocations: 111.2 kB / 0.6004 GB, free: 15.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/0.4633, allocations: 0.5196 MB / 0.6009 GB, free: 14.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.4633, allocations: 37.7 kB / 0.601 GB, free: 14.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.4636, allocations: 360.4 kB / 0.6013 GB, free: 14.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.4638, allocations: 173.4 kB / 0.6015 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.831e-05/0.4638, allocations: 12 kB / 0.6015 GB, free: 14.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.464, allocations: 378.9 kB / 0.6019 GB, free: 13.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005029/0.4645, allocations: 233.2 kB / 0.6021 GB, free: 13.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006082/0.4651, allocations: 369.5 kB / 0.6024 GB, free: 13.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000549/0.4657, allocations: 278.1 kB / 0.6027 GB, free: 12.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4657, allocations: 0 / 0.6027 GB, free: 12.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001689/0.4674, allocations: 0.8305 MB / 0.6035 GB, free: 12.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005517/0.4679, allocations: 1.407 MB / 0.6049 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.468, allocations: 4 kB / 0.6049 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004855/0.4684, allocations: 140.8 kB / 0.605 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/0.4691, allocations: 139.8 kB / 0.6052 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007192/0.4698, allocations: 0.7513 MB / 0.6059 GB, free: 9.535 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004915/0.4703, allocations: 99.39 kB / 0.606 GB, free: 9.438 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.4704, allocations: 20 kB / 0.606 GB, free: 9.418 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.4704, allocations: 4 kB / 0.606 GB, free: 9.414 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/0.4717, allocations: 0.6657 MB / 0.6067 GB, free: 8.746 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.4717, allocations: 0 / 0.6067 GB, free: 8.746 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.472, allocations: 108.7 kB / 0.6068 GB, free: 8.637 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.4726, allocations: 144.2 kB / 0.6069 GB, free: 8.496 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.4746, allocations: 2.046 MB / 0.6089 GB, free: 6.316 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.4751, allocations: 87.47 kB / 0.609 GB, free: 6.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.4752, allocations: 23.98 kB / 0.609 GB, free: 6.207 MB / 442.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 () * Number of clocked 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.0004219/0.4756, allocations: 308.8 kB / 0.6093 GB, free: 5.898 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.4757, allocations: 71.16 kB / 0.6094 GB, free: 5.828 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.477, allocations: 0.6163 MB / 0.61 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.477, allocations: 8 kB / 0.61 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.477, allocations: 0 / 0.61 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.477, allocations: 3.984 kB / 0.61 GB, free: 5.188 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.479, allocations: 1.349 MB / 0.6113 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.479, allocations: 3.938 kB / 0.6113 GB, free: 3.781 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005926/0.4796, allocations: 127.9 kB / 0.6114 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4796, allocations: 0 / 0.6114 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.4796, allocations: 15.98 kB / 0.6114 GB, free: 3.641 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4797, allocations: 4 kB / 0.6114 GB, free: 3.637 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4797, allocations: 0 / 0.6114 GB, free: 3.637 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.4814, allocations: 1.001 MB / 0.6124 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.4816, allocations: 196.1 kB / 0.6126 GB, free: 2.395 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.173e-05/0.4817, allocations: 12 kB / 0.6126 GB, free: 2.383 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.4821, allocations: 51.95 kB / 0.6127 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.4822, allocations: 40.38 kB / 0.6127 GB, free: 2.293 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.4823, allocations: 12 kB / 0.6127 GB, free: 2.281 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005594/0.4828, allocations: 431 kB / 0.6131 GB, free: 1.867 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4828, allocations: 0 / 0.6131 GB, free: 1.867 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007908/0.4836, allocations: 271.2 kB / 0.6134 GB, free: 1.602 MB / 442.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 () * Number of clocked 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.0001895/0.4838, allocations: 123.3 kB / 0.6135 GB, free: 1.469 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.4859, allocations: 1.017 MB / 0.6145 GB, free: 456 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4859, allocations: 0 / 0.6145 GB, free: 456 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.4864, allocations: 282.4 kB / 0.6148 GB, free: 168 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.487, allocations: 139 kB / 0.6149 GB, free: 28 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.4898, allocations: 1.823 MB / 0.6167 GB, free: 14.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.4903, allocations: 0.9615 MB / 0.6176 GB, free: 13.18 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004336/0.4907, allocations: 116.6 kB / 0.6177 GB, free: 13.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.4909, allocations: 47.36 kB / 0.6178 GB, free: 13.02 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4909, allocations: 0 / 0.6178 GB, free: 13.02 MB / 458.7 MB Notification: Performance of Templates: time 0.01259/0.5035, allocations: 7.24 MB / 0.6248 GB, free: 5.789 MB / 458.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