Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.001541/0.001541, allocations: 187.6 kB / 8.136 MB, free: 2.133 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.561/1.561, 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.0009017/0.0009016, allocations: 92.45 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1702/0.1702, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.222/0.3922, allocations: 62.45 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.5037, allocations: 56.32 MB / 466.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3665/0.8702, allocations: 102.6 MB / 0.5557 GB, free: 7.984 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.8705, allocations: 83.95 kB / 0.5558 GB, free: 7.902 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.06633/0.9369, allocations: 22.89 MB / 0.5781 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/0.937, allocations: 8 kB / 0.5781 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.9385, allocations: 178.7 kB / 0.5783 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.9402, allocations: 0.5933 MB / 0.5789 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.9403, allocations: 16 kB / 0.5789 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002221/0.9405, allocations: 43.91 kB / 0.5789 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001272/0.9418, allocations: 466.5 kB / 0.5794 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.9432, allocations: 0.631 MB / 0.58 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.9432, allocations: 7.938 kB / 0.58 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.767e-05/0.9433, allocations: 4 kB / 0.58 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.736e-05/0.9434, allocations: 29.3 kB / 0.58 GB, free: 14.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/0.9486, allocations: 2.842 MB / 0.5828 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.9499, allocations: 0.5931 MB / 0.5834 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.9502, allocations: 191 kB / 0.5836 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.72e-05/0.9503, allocations: 8.422 kB / 0.5836 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.9504, allocations: 43 kB / 0.5836 GB, free: 10.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 3.026e-06/0.9504, allocations: 0 / 0.5836 GB, free: 10.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009129/0.9513, allocations: 428.4 kB / 0.584 GB, free: 10.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.9514, allocations: 111.2 kB / 0.5841 GB, free: 10.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005585/0.9519, allocations: 398.7 kB / 0.5845 GB, free: 9.965 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.952, allocations: 25.7 kB / 0.5845 GB, free: 9.934 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.9522, allocations: 276 kB / 0.5848 GB, free: 9.656 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.9524, allocations: 173.4 kB / 0.585 GB, free: 9.484 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.9524, allocations: 0 / 0.585 GB, free: 9.484 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.9526, allocations: 374.9 kB / 0.5853 GB, free: 9.109 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.9529, allocations: 161.2 kB / 0.5855 GB, free: 8.953 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/0.9533, allocations: 296.2 kB / 0.5858 GB, free: 8.613 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.9537, allocations: 197.5 kB / 0.5859 GB, free: 8.426 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.9537, allocations: 4 kB / 0.586 GB, free: 8.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001406/0.9551, allocations: 0.6369 MB / 0.5866 GB, free: 7.773 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006504/0.9558, allocations: 1.397 MB / 0.5879 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.9558, allocations: 4 kB / 0.5879 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004754/0.9563, allocations: 112.8 kB / 0.5881 GB, free: 6.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006334/0.9569, allocations: 135.8 kB / 0.5882 GB, free: 6.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006838/0.9576, allocations: 0.7239 MB / 0.5889 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005328/0.9582, allocations: 63.62 kB / 0.5889 GB, free: 5.203 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.9582, allocations: 20 kB / 0.589 GB, free: 5.184 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.9582, allocations: 4 kB / 0.589 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001012/0.9592, allocations: 0.5074 MB / 0.5895 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.9593, allocations: 4 kB / 0.5895 GB, free: 4.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000284/0.9596, allocations: 92.8 kB / 0.5896 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005532/0.9601, allocations: 132 kB / 0.5897 GB, free: 4.441 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/0.9626, allocations: 1.936 MB / 0.5916 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.9631, allocations: 51.66 kB / 0.5916 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.9631, allocations: 32 kB / 0.5917 GB, free: 2.309 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 (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.0002384/0.9634, allocations: 116.8 kB / 0.5918 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.9635, allocations: 59.25 kB / 0.5918 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009135/0.9644, allocations: 461.4 kB / 0.5923 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.9644, allocations: 4.094 kB / 0.5923 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.9645, allocations: 3.938 kB / 0.5923 GB, free: 1.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.9645, allocations: 7.938 kB / 0.5923 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.9664, allocations: 1.111 MB / 0.5934 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.9664, allocations: 0 / 0.5934 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006492/0.9671, allocations: 123.9 kB / 0.5935 GB, free: 388 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.9671, allocations: 3.906 kB / 0.5935 GB, free: 384 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.9672, allocations: 4 kB / 0.5935 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.9672, allocations: 3.938 kB / 0.5935 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9672, allocations: 4 kB / 0.5935 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001165/0.9684, allocations: 0.7737 MB / 0.5943 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001602/0.97, allocations: 1.406 MB / 0.5956 GB, free: 14.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.9703, allocations: 192.1 kB / 0.5958 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.789e-05/0.9704, allocations: 0 / 0.5958 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.9708, allocations: 35.97 kB / 0.5958 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.9709, allocations: 32.38 kB / 0.5959 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.971, allocations: 16 kB / 0.5959 GB, free: 13.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004466/0.9714, allocations: 302.9 kB / 0.5962 GB, free: 13.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002435/0.9739, allocations: 262.9 kB / 0.5964 GB, free: 13.29 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 (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.0002328/0.9741, allocations: 111.2 kB / 0.5965 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.9759, allocations: 0.8472 MB / 0.5974 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.976, allocations: 8.125 kB / 0.5974 GB, free: 12.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003752/0.9763, allocations: 209.8 kB / 0.5976 GB, free: 12.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008006/0.9772, allocations: 108.3 kB / 0.5977 GB, free: 11.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.9803, allocations: 1.168 MB / 0.5988 GB, free: 10.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009131/0.9812, allocations: 1.013 MB / 0.5998 GB, free: 9.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.9812, allocations: 0 / 0.5998 GB, free: 9.75 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat does not exist to compare? outputFormat=mat