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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) [: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.001139/0.001139, allocations: 187.3 kB / 8.137 MB, free: 2.219 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.57/1.57, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009438/0.0009439, allocations: 99.7 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1687/0.1687, allocations: 37.97 MB / 347.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2068/0.3756, allocations: 62.44 MB / 410.1 MB, free: 46.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.4929, allocations: 56.31 MB / 466.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.8914, allocations: 104.7 MB / 0.5577 GB, free: 5.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.8918, allocations: 83.94 kB / 0.5578 GB, free: 5.734 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.08374/0.9755, allocations: 28.81 MB / 0.5859 GB, free: 8.652 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.9756, allocations: 8 kB / 0.5859 GB, free: 8.645 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001982/0.9776, allocations: 214.6 kB / 0.5861 GB, free: 8.434 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.9794, allocations: 0.6205 MB / 0.5867 GB, free: 7.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.038e-05/0.9795, allocations: 27.98 kB / 0.5868 GB, free: 7.742 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.9797, allocations: 40 kB / 0.5868 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001262/0.981, allocations: 0.5695 MB / 0.5874 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.9823, allocations: 0.7426 MB / 0.5881 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.9823, allocations: 3.938 kB / 0.5881 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.911e-05/0.9824, allocations: 4 kB / 0.5881 GB, free: 6.344 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.9825, allocations: 45.28 kB / 0.5881 GB, free: 6.301 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006087/0.9886, allocations: 3.149 MB / 0.5912 GB, free: 3.039 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.9898, allocations: 482.2 kB / 0.5917 GB, free: 2.547 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004304/0.9902, allocations: 247.2 kB / 0.5919 GB, free: 2.301 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.101e-05/0.9903, allocations: 8.5 kB / 0.5919 GB, free: 2.293 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/0.9904, allocations: 47.05 kB / 0.592 GB, free: 2.238 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.496e-06/0.9904, allocations: 4 kB / 0.592 GB, free: 2.234 MB / 426.7 MB Notification: Performance of matching and sorting (n=63): time 0.003719/0.9941, allocations: 1.845 MB / 0.5938 GB, free: 308 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.9942, allocations: 115.2 kB / 0.5939 GB, free: 168 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007061/0.9949, allocations: 410.2 kB / 0.5943 GB, free: 15.76 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.995, allocations: 25.7 kB / 0.5943 GB, free: 15.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.9952, allocations: 295.9 kB / 0.5946 GB, free: 15.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.9954, allocations: 208.8 kB / 0.5948 GB, free: 15.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.9954, allocations: 0 / 0.5948 GB, free: 15.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002442/0.9957, allocations: 382.7 kB / 0.5951 GB, free: 14.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.9961, allocations: 217.5 kB / 0.5954 GB, free: 14.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.9966, allocations: 354.3 kB / 0.5957 GB, free: 14.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.997, allocations: 267.1 kB / 0.5959 GB, free: 13.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.997, allocations: 0 / 0.5959 GB, free: 13.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001401/0.9985, allocations: 0.7066 MB / 0.5966 GB, free: 13.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007954/0.9993, allocations: 1.481 MB / 0.5981 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.9993, allocations: 4 kB / 0.5981 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.9996, allocations: 64.81 kB / 0.5981 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008786/1.001, allocations: 187.7 kB / 0.5983 GB, free: 11.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/1.002, allocations: 1.517 MB / 0.5998 GB, free: 9.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/1.003, allocations: 51.88 kB / 0.5999 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.718e-05/1.003, allocations: 27.98 kB / 0.5999 GB, free: 9.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.365e-06/1.003, allocations: 5.562 kB / 0.5999 GB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00117/1.004, allocations: 0.5964 MB / 0.6005 GB, free: 9.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/1.004, allocations: 4 kB / 0.6005 GB, free: 9.074 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002218/1.004, allocations: 57.31 kB / 0.6005 GB, free: 9.016 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007702/1.005, allocations: 179.8 kB / 0.6007 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/1.007, allocations: 1.529 MB / 0.6022 GB, free: 7.191 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005433/1.007, allocations: 36.08 kB / 0.6022 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.135e-05/1.007, allocations: 31.97 kB / 0.6023 GB, free: 7.125 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.0001877/1.007, allocations: 119.1 kB / 0.6024 GB, free: 7.004 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/1.008, allocations: 71.16 kB / 0.6024 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/1.009, allocations: 0.6557 MB / 0.6031 GB, free: 6.273 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/1.009, allocations: 4 kB / 0.6031 GB, free: 6.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/1.009, allocations: 0 / 0.6031 GB, free: 6.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/1.009, allocations: 7.984 kB / 0.6031 GB, free: 6.262 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/1.013, allocations: 1.93 MB / 0.605 GB, free: 4.203 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/1.013, allocations: 8 kB / 0.605 GB, free: 4.195 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/1.014, allocations: 144.5 kB / 0.6051 GB, free: 4.055 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/1.014, allocations: 56.81 kB / 0.6052 GB, free: 3.996 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/1.014, allocations: 12 kB / 0.6052 GB, free: 3.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/1.016, allocations: 1.498 MB / 0.6067 GB, free: 2.375 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.016, allocations: 7.938 kB / 0.6067 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002017/1.018, allocations: 1.465 MB / 0.6081 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002577/1.02, allocations: 2.166 MB / 0.6102 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/1.021, allocations: 196.3 kB / 0.6104 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/1.021, allocations: 19.98 kB / 0.6104 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00056/1.021, allocations: 47.95 kB / 0.6105 GB, free: 13.94 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/1.022, allocations: 51.84 kB / 0.6105 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/1.022, allocations: 27.98 kB / 0.6105 GB, free: 13.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004401/1.022, allocations: 310.9 kB / 0.6108 GB, free: 13.56 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002569/1.025, allocations: 235.9 kB / 0.6111 GB, free: 13.33 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.0002927/1.025, allocations: 126.9 kB / 0.6112 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00207/1.027, allocations: 1.092 MB / 0.6122 GB, free: 12.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/1.027, allocations: 4.25 kB / 0.6122 GB, free: 12.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008005/1.028, allocations: 441.3 kB / 0.6127 GB, free: 11.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008321/1.029, allocations: 126 kB / 0.6128 GB, free: 11.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003039/1.032, allocations: 1.318 MB / 0.6141 GB, free: 10.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.033, allocations: 1.07 MB / 0.6151 GB, free: 8.996 MB / 458.7 MB Notification: Performance of SimCode: time 7.82e-07/1.033, allocations: 4 kB / 0.6151 GB, free: 8.992 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat does not exist to compare? outputFormat=mat