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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 184.2 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.001024/0.001024, allocations: 90.36 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.183/0.183, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.804e-06/7.834e-06, allocations: 0 / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 56.31 MB / 466.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3596/0.4725, allocations: 102.8 MB / 0.5558 GB, free: 7.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.4729, allocations: 83.95 kB / 0.5559 GB, free: 7.727 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05913/0.532, allocations: 22.11 MB / 0.5775 GB, free: 1.445 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.976e-05/0.5321, allocations: 15.94 kB / 0.5775 GB, free: 1.43 MB / 410.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.001822/0.534, allocations: 0.9639 MB / 0.5784 GB, free: 428 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.534, allocations: 15.97 kB / 0.5785 GB, free: 412 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.535, allocations: 174.8 kB / 0.5786 GB, free: 236 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.5361, allocations: 0.5894 MB / 0.5792 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.5362, allocations: 23.98 kB / 0.5792 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.563e-05/0.5363, allocations: 44 kB / 0.5793 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008751/0.5372, allocations: 470.5 kB / 0.5797 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.5382, allocations: 0.6247 MB / 0.5803 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.5382, allocations: 7.984 kB / 0.5803 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.358e-05/0.5383, allocations: 0 / 0.5803 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.243e-05/0.5384, allocations: 29.31 kB / 0.5804 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.5426, allocations: 2.893 MB / 0.5832 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.5438, allocations: 0.6086 MB / 0.5838 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.5441, allocations: 195.1 kB / 0.584 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.619e-05/0.5442, allocations: 4.438 kB / 0.584 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.5443, allocations: 46.91 kB / 0.584 GB, free: 10.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.084e-06/0.5443, allocations: 0 / 0.584 GB, free: 10.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=51): time 0.0008296/0.5451, allocations: 440.4 kB / 0.5844 GB, free: 10.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.5452, allocations: 111.2 kB / 0.5845 GB, free: 9.902 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.5457, allocations: 394.3 kB / 0.5849 GB, free: 9.512 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.5457, allocations: 25.7 kB / 0.5849 GB, free: 9.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.5459, allocations: 288 kB / 0.5852 GB, free: 9.191 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.5461, allocations: 173.5 kB / 0.5854 GB, free: 9.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.5461, allocations: 3.938 kB / 0.5854 GB, free: 9.016 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.5463, allocations: 370.8 kB / 0.5857 GB, free: 8.645 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002912/0.5466, allocations: 165.3 kB / 0.5859 GB, free: 8.484 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003779/0.547, allocations: 296.3 kB / 0.5862 GB, free: 8.145 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.5473, allocations: 205.4 kB / 0.5864 GB, free: 7.949 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.5473, allocations: 0 / 0.5864 GB, free: 7.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001249/0.5486, allocations: 0.6487 MB / 0.587 GB, free: 7.289 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005219/0.5491, allocations: 1.397 MB / 0.5884 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.5491, allocations: 4 kB / 0.5884 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004058/0.5495, allocations: 112.8 kB / 0.5885 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/0.5502, allocations: 151.8 kB / 0.5886 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006548/0.5508, allocations: 0.72 MB / 0.5893 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.5513, allocations: 71.56 kB / 0.5894 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.5514, allocations: 20 kB / 0.5894 GB, free: 4.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-06/0.5514, allocations: 4 kB / 0.5894 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009609/0.5524, allocations: 0.5071 MB / 0.5899 GB, free: 4.164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.5524, allocations: 7.984 kB / 0.5899 GB, free: 4.156 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002725/0.5527, allocations: 109.7 kB / 0.59 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000591/0.5533, allocations: 143.8 kB / 0.5902 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.5553, allocations: 1.931 MB / 0.5921 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.5558, allocations: 59.72 kB / 0.5921 GB, free: 1.805 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.5558, allocations: 27.98 kB / 0.5921 GB, free: 1.777 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real 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 (62): * Single equations (assignments): 61 * 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.0002132/0.5561, allocations: 124.7 kB / 0.5923 GB, free: 1.648 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.5562, allocations: 59.25 kB / 0.5923 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009034/0.5571, allocations: 473.5 kB / 0.5928 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.5571, allocations: 8 kB / 0.5928 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5571, allocations: 7.906 kB / 0.5928 GB, free: 1.102 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.5571, allocations: 3.984 kB / 0.5928 GB, free: 1.098 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.5588, allocations: 1.126 MB / 0.5939 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5588, allocations: 0 / 0.5939 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006514/0.5594, allocations: 127.9 kB / 0.594 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.5595, allocations: 4 kB / 0.594 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.5595, allocations: 4 kB / 0.594 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.5595, allocations: 0 / 0.594 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5595, allocations: 3.938 kB / 0.594 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001088/0.5606, allocations: 0.801 MB / 0.5948 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.5609, allocations: 192.1 kB / 0.595 GB, free: 14.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.561, allocations: 4 kB / 0.595 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004279/0.5614, allocations: 43.95 kB / 0.595 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.5615, allocations: 32.39 kB / 0.5951 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.5615, allocations: 15.98 kB / 0.5951 GB, free: 14.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003938/0.5619, allocations: 310.9 kB / 0.5954 GB, free: 14.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008478/0.5628, allocations: 263.5 kB / 0.5956 GB, free: 14.11 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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.0001906/0.563, allocations: 119.1 kB / 0.5957 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.5647, allocations: 0.8553 MB / 0.5966 GB, free: 13.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5647, allocations: 4.344 kB / 0.5966 GB, free: 13.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.565, allocations: 225.5 kB / 0.5968 GB, free: 12.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006552/0.5657, allocations: 120.4 kB / 0.5969 GB, free: 12.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.5684, allocations: 1.179 MB / 0.5981 GB, free: 11.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007566/0.5692, allocations: 1.009 MB / 0.599 GB, free: 10.52 MB / 442.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5692, allocations: 0 / 0.599 GB, free: 10.52 MB / 442.7 MB Notification: Performance of Templates: time 0.0173/0.5865, allocations: 9.752 MB / 0.6086 GB, free: 0.7773 MB / 442.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