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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.0019/0.0019, allocations: 188.2 kB / 8.138 MB, free: 2.191 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.647/1.647, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009971/0.0009972, allocations: 90.95 kB / 261.7 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.1697/0.1697, allocations: 37.97 MB / 347.7 MB, free: 7.516 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2127/0.3825, allocations: 62.43 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.4986, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4124/0.9111, allocations: 102.8 MB / 0.5559 GB, free: 7.656 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.9115, allocations: 83.95 kB / 0.556 GB, free: 7.574 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.06591/0.9774, allocations: 23.09 MB / 0.5785 GB, free: 264 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.9775, allocations: 8 kB / 0.5785 GB, free: 256 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.9789, allocations: 178.8 kB / 0.5787 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00162/0.9805, allocations: 0.601 MB / 0.5793 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.9806, allocations: 16 kB / 0.5793 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.9808, allocations: 36 kB / 0.5794 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001095/0.9819, allocations: 478.5 kB / 0.5798 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.9831, allocations: 0.6286 MB / 0.5804 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.9832, allocations: 7.938 kB / 0.5804 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.9833, allocations: 0 / 0.5804 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.647e-05/0.9833, allocations: 29.3 kB / 0.5805 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.9886, allocations: 2.885 MB / 0.5833 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.9899, allocations: 0.6164 MB / 0.5839 GB, free: 10.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/0.9903, allocations: 191.1 kB / 0.5841 GB, free: 10.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.669e-05/0.9903, allocations: 4.438 kB / 0.5841 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.9904, allocations: 46.91 kB / 0.5841 GB, free: 10.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.084e-06/0.9904, allocations: 0 / 0.5841 GB, free: 10.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=51): time 0.0008727/0.9913, allocations: 436.4 kB / 0.5845 GB, free: 9.879 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.9914, allocations: 111.3 kB / 0.5846 GB, free: 9.746 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000507/0.9919, allocations: 398.3 kB / 0.585 GB, free: 9.352 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.9919, allocations: 25.7 kB / 0.585 GB, free: 9.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.9921, allocations: 284 kB / 0.5853 GB, free: 9.035 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.9923, allocations: 169.4 kB / 0.5855 GB, free: 8.867 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.9923, allocations: 0 / 0.5855 GB, free: 8.867 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.9925, allocations: 374.9 kB / 0.5858 GB, free: 8.492 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.9928, allocations: 173.2 kB / 0.586 GB, free: 8.324 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.9931, allocations: 298.6 kB / 0.5863 GB, free: 7.984 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.9935, allocations: 205.4 kB / 0.5865 GB, free: 7.789 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.9935, allocations: 4 kB / 0.5865 GB, free: 7.785 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001275/0.9948, allocations: 0.6491 MB / 0.5871 GB, free: 7.125 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005749/0.9954, allocations: 1.4 MB / 0.5885 GB, free: 5.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.9954, allocations: 4 kB / 0.5885 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004403/0.9958, allocations: 107.1 kB / 0.5886 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.9965, allocations: 151.8 kB / 0.5887 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007368/0.9973, allocations: 0.7161 MB / 0.5894 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.9978, allocations: 83.55 kB / 0.5895 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.9978, allocations: 20 kB / 0.5895 GB, free: 4.512 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.565e-06/0.9979, allocations: 4 kB / 0.5895 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/0.9989, allocations: 0.5074 MB / 0.59 GB, free: 3.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.9989, allocations: 4 kB / 0.59 GB, free: 3.992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002825/0.9992, allocations: 96.8 kB / 0.5901 GB, free: 3.895 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.9999, allocations: 151.9 kB / 0.5903 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/1.002, allocations: 1.932 MB / 0.5922 GB, free: 1.703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/1.003, allocations: 59.72 kB / 0.5922 GB, free: 1.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/1.003, allocations: 24 kB / 0.5922 GB, free: 1.621 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.0002315/1.003, allocations: 124.7 kB / 0.5924 GB, free: 1.492 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/1.003, allocations: 63.25 kB / 0.5924 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009706/1.004, allocations: 477.4 kB / 0.5929 GB, free: 0.9531 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/1.004, allocations: 11.98 kB / 0.5929 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/1.004, allocations: 3.906 kB / 0.5929 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/1.004, allocations: 3.984 kB / 0.5929 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/1.006, allocations: 1.122 MB / 0.594 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.006, allocations: 0 / 0.594 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000679/1.007, allocations: 131.8 kB / 0.5941 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/1.007, allocations: 4 kB / 0.5941 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/1.007, allocations: 8 kB / 0.5941 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/1.007, allocations: 4 kB / 0.5941 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.007, allocations: 3.984 kB / 0.5941 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001222/1.008, allocations: 0.7971 MB / 0.5949 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001613/1.01, allocations: 1.433 MB / 0.5963 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/1.01, allocations: 192.2 kB / 0.5965 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.292e-05/1.01, allocations: 0 / 0.5965 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/1.01, allocations: 47.95 kB / 0.5965 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/1.01, allocations: 32.3 kB / 0.5966 GB, free: 13.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/1.01, allocations: 19.98 kB / 0.5966 GB, free: 13.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003773/1.011, allocations: 310.9 kB / 0.5969 GB, free: 12.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002086/1.013, allocations: 263.5 kB / 0.5971 GB, free: 12.48 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.0002201/1.013, allocations: 119.1 kB / 0.5972 GB, free: 12.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001824/1.015, allocations: 0.8591 MB / 0.5981 GB, free: 11.47 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/1.015, allocations: 0 / 0.5981 GB, free: 11.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/1.015, allocations: 221.8 kB / 0.5983 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/1.016, allocations: 112.9 kB / 0.5984 GB, free: 11.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/1.019, allocations: 1.183 MB / 0.5996 GB, free: 9.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000855/1.02, allocations: 1.02 MB / 0.6006 GB, free: 8.883 MB / 442.7 MB Notification: Performance of SimCode: time 2.8e-07/1.02, allocations: 0 / 0.6006 GB, free: 8.883 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat does not exist to compare? outputFormat=mat