Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.047/2.047, allocations: 387.2 MB / 394.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 181.2 kB / 487 MB, free: 5.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.3 MB / 0.7819 GB, free: 1.512 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001112, allocations: 92.61 kB / 0.9213 GB, free: 2.758 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5852/0.5864, allocations: 148.4 MB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.8513, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.562/5.413, allocations: 2.199 GB / 3.404 GB, free: 110.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/5.414, allocations: 95.77 kB / 3.404 GB, free: 110.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 985 * Number of variables: 985 Notification: Performance of Generate backend data structure: time 3.027/8.44, allocations: 0.9482 GB / 4.353 GB, free: 54.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/8.441, allocations: 12 kB / 4.353 GB, free: 54.29 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009451/8.45, allocations: 1.402 MB / 4.354 GB, free: 52.88 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01473/8.465, allocations: 5.602 MB / 4.359 GB, free: 47.21 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/8.465, allocations: 124 kB / 4.36 GB, free: 47.09 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001394/8.466, allocations: 224 kB / 4.36 GB, free: 46.87 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008853/8.475, allocations: 4.478 MB / 4.364 GB, free: 42.39 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008567/8.484, allocations: 4.621 MB / 4.369 GB, free: 37.61 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-05/8.484, allocations: 11.88 kB / 4.369 GB, free: 37.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004955/8.485, allocations: 8 kB / 4.369 GB, free: 37.59 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/8.485, allocations: 187.3 kB / 4.369 GB, free: 37.41 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03097/8.516, allocations: 19.38 MB / 4.388 GB, free: 17.36 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/8.52, allocations: 2.971 MB / 4.391 GB, free: 14.39 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/8.522, allocations: 1.632 MB / 4.392 GB, free: 12.75 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001824/8.524, allocations: 1.864 MB / 4.394 GB, free: 10.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002484/8.526, allocations: 1.792 MB / 4.396 GB, free: 8.66 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 4.929e-06/8.526, allocations: 0 / 4.396 GB, free: 8.66 MB / 1.151 GB Notification: Performance of matching and sorting (n=265): time 0.01069/8.537, allocations: 3.716 MB / 4.4 GB, free: 4.891 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/8.537, allocations: 291.1 kB / 4.4 GB, free: 4.543 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004676/8.542, allocations: 3.088 MB / 4.403 GB, free: 1.457 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0007068/8.542, allocations: 25.7 kB / 4.403 GB, free: 1.426 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.511/9.053, allocations: 1.421 MB / 4.404 GB, free: 341.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002417/9.056, allocations: 0.8627 MB / 4.405 GB, free: 341.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/9.056, allocations: 0 / 4.405 GB, free: 341.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002657/9.056, allocations: 431.1 kB / 4.405 GB, free: 341.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002134/9.059, allocations: 1.334 MB / 4.407 GB, free: 341.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/9.061, allocations: 2.001 MB / 4.409 GB, free: 340.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01386/9.075, allocations: 2.899 MB / 4.412 GB, free: 340.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-05/9.075, allocations: 7.531 kB / 4.412 GB, free: 340.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.01891/9.094, allocations: 5.002 MB / 4.416 GB, free: 340.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001385/9.095, allocations: 7.286 MB / 4.424 GB, free: 332.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/9.095, allocations: 17.72 kB / 4.424 GB, free: 332.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006931/9.096, allocations: 114.5 kB / 4.424 GB, free: 332.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/9.1, allocations: 0.8219 MB / 4.424 GB, free: 332.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/9.102, allocations: 1.507 MB / 4.426 GB, free: 331.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005184/9.107, allocations: 449.6 kB / 4.426 GB, free: 331.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004209/9.108, allocations: 144.8 kB / 4.427 GB, free: 331.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/9.108, allocations: 3.344 kB / 4.427 GB, free: 331.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01689/9.125, allocations: 4.621 MB / 4.431 GB, free: 331.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.558e-05/9.125, allocations: 17.94 kB / 4.431 GB, free: 331.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006535/9.126, allocations: 111.9 kB / 4.431 GB, free: 331.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004321/9.13, allocations: 0.8188 MB / 4.432 GB, free: 331.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/9.132, allocations: 1.514 MB / 4.433 GB, free: 329.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005065/9.137, allocations: 397.8 kB / 4.434 GB, free: 329.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006095/9.138, allocations: 145.8 kB / 4.434 GB, free: 329.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (372): * Single equations (assignments): 371 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.001152/9.139, allocations: 182.3 kB / 4.434 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/9.14, allocations: 357.4 kB / 4.434 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0141/9.154, allocations: 4.563 MB / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-05/9.155, allocations: 36.98 kB / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.026e-05/9.155, allocations: 0 / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01017/9.165, allocations: 3.658 MB / 4.443 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/9.189, allocations: 9.011 MB / 4.451 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/9.189, allocations: 3.281 kB / 4.451 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/9.193, allocations: 0.6455 MB / 4.452 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006132/9.193, allocations: 93.72 kB / 4.452 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004183/9.194, allocations: 68.69 kB / 4.452 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/9.196, allocations: 1.501 MB / 4.454 GB, free: 327 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/9.196, allocations: 6.719 kB / 4.454 GB, free: 327 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01508/9.211, allocations: 6.425 MB / 4.46 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01803/9.229, allocations: 8.907 MB / 4.469 GB, free: 324.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003319/9.232, allocations: 1.06 MB / 4.47 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001692/9.234, allocations: 23.94 kB / 4.47 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005003/9.239, allocations: 267.7 kB / 4.47 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/9.239, allocations: 161.6 kB / 4.47 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005405/9.24, allocations: 133.1 kB / 4.47 GB, free: 324.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.004574/9.244, allocations: 2.381 MB / 4.473 GB, free: 323.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01128/9.256, allocations: 2.75 MB / 4.475 GB, free: 323.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.003164/9.259, allocations: 1.651 MB / 4.477 GB, free: 323.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.008986/9.268, allocations: 5.491 MB / 4.482 GB, free: 323.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/9.268, allocations: 4.469 kB / 4.482 GB, free: 323.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002854/9.271, allocations: 1.722 MB / 4.484 GB, free: 323.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008927/9.28, allocations: 1.662 MB / 4.485 GB, free: 323.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/9.299, allocations: 8.076 MB / 4.493 GB, free: 321.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004615/9.304, allocations: 3.627 MB / 4.497 GB, free: 320.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.463e-06/9.304, allocations: 0 / 4.497 GB, free: 320.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat does not exist to compare? outputFormat=mat