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/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.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") [: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.001278/0.001278, allocations: 181.8 kB / 8.134 MB, free: 2.168 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.446/1.446, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.0008505/0.0008505, allocations: 82.53 kB / 261.7 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1848/0.1848, allocations: 37.97 MB / 347.7 MB, free: 7.496 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.514e-06, allocations: 0 / 410 MB, free: 46.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 56.31 MB / 466.3 MB, free: 6.504 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3743/0.4894, allocations: 104.7 MB / 0.5576 GB, free: 5.906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4897, allocations: 87.94 kB / 0.5577 GB, free: 5.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07382/0.5635, allocations: 27.76 MB / 0.5848 GB, free: 9.848 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.2e-05/0.5637, allocations: 23.94 kB / 0.5848 GB, free: 9.824 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002067/0.5657, allocations: 1.014 MB / 0.5858 GB, free: 8.758 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.5658, allocations: 12.02 kB / 0.5858 GB, free: 8.746 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00144/0.5672, allocations: 206.6 kB / 0.586 GB, free: 8.543 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.5685, allocations: 0.6244 MB / 0.5866 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.5685, allocations: 24 kB / 0.5867 GB, free: 7.852 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.5686, allocations: 36 kB / 0.5867 GB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001111/0.5698, allocations: 0.5812 MB / 0.5873 GB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.571, allocations: 0.741 MB / 0.588 GB, free: 6.457 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.5711, allocations: 7.922 kB / 0.588 GB, free: 6.449 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.154e-05/0.5711, allocations: 0 / 0.588 GB, free: 6.449 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.5713, allocations: 49.23 kB / 0.5881 GB, free: 6.402 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00507/0.5763, allocations: 3.149 MB / 0.5911 GB, free: 3.141 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008976/0.5773, allocations: 482.2 kB / 0.5916 GB, free: 2.648 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.5777, allocations: 255.2 kB / 0.5918 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.359e-05/0.5777, allocations: 8.484 kB / 0.5918 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.5778, allocations: 39.06 kB / 0.5919 GB, free: 2.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 2.515e-06/0.5778, allocations: 0 / 0.5919 GB, free: 2.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=63): time 0.003333/0.5812, allocations: 1.849 MB / 0.5937 GB, free: 412 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.5812, allocations: 111.3 kB / 0.5938 GB, free: 276 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.5818, allocations: 414.2 kB / 0.5942 GB, free: 15.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.5819, allocations: 25.7 kB / 0.5942 GB, free: 15.83 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.5821, allocations: 283.9 kB / 0.5945 GB, free: 15.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.5823, allocations: 220.8 kB / 0.5947 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.5823, allocations: 0 / 0.5947 GB, free: 15.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.5826, allocations: 378.7 kB / 0.5951 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.5829, allocations: 213.5 kB / 0.5953 GB, free: 14.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.5834, allocations: 358.3 kB / 0.5956 GB, free: 14.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.5839, allocations: 271.1 kB / 0.5959 GB, free: 14.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.5839, allocations: 0 / 0.5959 GB, free: 14.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001229/0.5851, allocations: 0.7027 MB / 0.5965 GB, free: 13.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007175/0.5859, allocations: 1.489 MB / 0.598 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5859, allocations: 7.984 kB / 0.598 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.5862, allocations: 56.81 kB / 0.5981 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008252/0.587, allocations: 191.6 kB / 0.5982 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.5886, allocations: 1.517 MB / 0.5997 GB, free: 9.855 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.5891, allocations: 55.97 kB / 0.5998 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.5892, allocations: 24 kB / 0.5998 GB, free: 9.777 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-06/0.5892, allocations: 7.938 kB / 0.5998 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001087/0.5903, allocations: 0.5926 MB / 0.6004 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5903, allocations: 4 kB / 0.6004 GB, free: 9.172 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.5905, allocations: 65.25 kB / 0.6004 GB, free: 9.105 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007452/0.5913, allocations: 175.8 kB / 0.6006 GB, free: 8.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.5926, allocations: 1.517 MB / 0.6021 GB, free: 7.297 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.5931, allocations: 40.08 kB / 0.6021 GB, free: 7.258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/0.5931, allocations: 31.92 kB / 0.6022 GB, free: 7.227 MB / 442.7 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 () * 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.0001767/0.5933, allocations: 120.8 kB / 0.6023 GB, free: 7.102 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.5934, allocations: 67.34 kB / 0.6023 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.5947, allocations: 0.6596 MB / 0.603 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.5948, allocations: 8 kB / 0.603 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.5948, allocations: 0 / 0.603 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.5948, allocations: 0 / 0.603 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.5984, allocations: 1.941 MB / 0.6049 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.5984, allocations: 4 kB / 0.6049 GB, free: 4.289 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006514/0.5991, allocations: 140.5 kB / 0.605 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002149/0.5993, allocations: 56.81 kB / 0.6051 GB, free: 4.094 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.941e-05/0.5994, allocations: 12 kB / 0.6051 GB, free: 4.082 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/0.6008, allocations: 1.497 MB / 0.6066 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.6009, allocations: 11.94 kB / 0.6066 GB, free: 2.461 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001902/0.6028, allocations: 1.457 MB / 0.608 GB, free: 0.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002801/0.6031, allocations: 196.2 kB / 0.6082 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.532e-05/0.6032, allocations: 23.98 kB / 0.6082 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005222/0.6037, allocations: 47.88 kB / 0.6082 GB, free: 480 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.6038, allocations: 55.83 kB / 0.6083 GB, free: 424 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.6039, allocations: 24 kB / 0.6083 GB, free: 400 kB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004327/0.6043, allocations: 318.9 kB / 0.6086 GB, free: 84 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.001223/0.6056, allocations: 228 kB / 0.6088 GB, free: 15.86 MB / 458.7 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 () * 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.0002372/0.6058, allocations: 123.2 kB / 0.609 GB, free: 15.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.6078, allocations: 1.096 MB / 0.61 GB, free: 14.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6078, allocations: 4.062 kB / 0.61 GB, free: 14.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007322/0.6086, allocations: 441.3 kB / 0.6105 GB, free: 14.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.6093, allocations: 134 kB / 0.6106 GB, free: 14.05 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.6121, allocations: 1.301 MB / 0.6119 GB, free: 12.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009129/0.6131, allocations: 1.058 MB / 0.6129 GB, free: 11.54 MB / 458.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6131, allocations: 4 kB / 0.6129 GB, free: 11.54 MB / 458.7 MB Notification: Performance of Templates: time 0.02003/0.6331, allocations: 10.75 MB / 0.6234 GB, free: 0.7891 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (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) 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