Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.118/2.118, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001086/0.001086, allocations: 177.3 kB / 490.8 MB, free: 1.902 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.349/1.349, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009552/0.0009552, allocations: 88.67 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6148/0.6158, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.8801, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.429/5.31, allocations: 2.199 GB / 3.411 GB, free: 108.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/5.31, allocations: 87.95 kB / 3.411 GB, free: 108.4 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 2.977/8.287, allocations: 0.9482 GB / 4.359 GB, free: 44.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/8.287, allocations: 8 kB / 4.359 GB, free: 44.39 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009408/8.296, allocations: 1.406 MB / 4.361 GB, free: 42.98 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01601/8.312, allocations: 5.611 MB / 4.366 GB, free: 37.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003042/8.312, allocations: 123.9 kB / 4.366 GB, free: 37.18 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002014/8.315, allocations: 231.9 kB / 4.366 GB, free: 36.95 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01155/8.326, allocations: 4.474 MB / 4.371 GB, free: 32.48 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01694/8.343, allocations: 4.625 MB / 4.375 GB, free: 27.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003132/8.343, allocations: 11.92 kB / 4.375 GB, free: 27.68 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001805/8.345, allocations: 8 kB / 4.375 GB, free: 27.68 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001597/8.345, allocations: 179.3 kB / 4.375 GB, free: 27.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03735/8.383, allocations: 19.38 MB / 4.394 GB, free: 7.465 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005181/8.388, allocations: 2.959 MB / 4.397 GB, free: 4.512 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/8.39, allocations: 1.64 MB / 4.399 GB, free: 2.867 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001858/8.392, allocations: 1.868 MB / 4.401 GB, free: 0.6094 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5087/8.901, allocations: 1.786 MB / 4.402 GB, free: 338 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 5.841e-06/8.901, allocations: 3.344 kB / 4.402 GB, free: 338 MB / 1.151 GB Notification: Performance of matching and sorting (n=265): time 0.01136/8.912, allocations: 3.714 MB / 4.406 GB, free: 337.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.21e-05/8.912, allocations: 291.9 kB / 4.406 GB, free: 337.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004786/8.917, allocations: 3.083 MB / 4.409 GB, free: 337.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004409/8.918, allocations: 25.7 kB / 4.409 GB, free: 337.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001674/8.919, allocations: 1.416 MB / 4.411 GB, free: 336.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001282/8.921, allocations: 0.8734 MB / 4.412 GB, free: 336.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/8.921, allocations: 0 / 4.412 GB, free: 336.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001558/8.921, allocations: 425.9 kB / 4.412 GB, free: 336.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/8.923, allocations: 1.33 MB / 4.413 GB, free: 336.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/8.925, allocations: 2.009 MB / 4.415 GB, free: 335.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01318/8.938, allocations: 2.9 MB / 4.418 GB, free: 335.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.743e-05/8.938, allocations: 7.156 kB / 4.418 GB, free: 335.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.01856/8.957, allocations: 4.99 MB / 4.423 GB, free: 335.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001503/8.959, allocations: 7.298 MB / 4.43 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.884e-05/8.959, allocations: 18.78 kB / 4.43 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006609/8.959, allocations: 112.7 kB / 4.43 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004355/8.964, allocations: 0.8161 MB / 4.431 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/8.965, allocations: 1.509 MB / 4.433 GB, free: 326 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/8.971, allocations: 451.2 kB / 4.433 GB, free: 326 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004735/8.971, allocations: 149.4 kB / 4.433 GB, free: 326 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/8.971, allocations: 4.625 kB / 4.433 GB, free: 326 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01662/8.988, allocations: 4.626 MB / 4.438 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/8.988, allocations: 15.44 kB / 4.438 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006005/8.988, allocations: 114 kB / 4.438 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003972/8.992, allocations: 0.8176 MB / 4.439 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/8.994, allocations: 1.506 MB / 4.44 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004778/8.999, allocations: 398.2 kB / 4.44 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003787/8.999, allocations: 147.9 kB / 4.441 GB, free: 324.6 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.001006/9, allocations: 175.9 kB / 4.441 GB, free: 324.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/9.002, allocations: 367.1 kB / 4.441 GB, free: 324.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01281/9.014, allocations: 4.559 MB / 4.445 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.495e-05/9.014, allocations: 30.41 kB / 4.446 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/9.014, allocations: 0 / 4.446 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009481/9.024, allocations: 3.656 MB / 4.449 GB, free: 323.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02311/9.047, allocations: 9.024 MB / 4.458 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/9.047, allocations: 3.969 kB / 4.458 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003575/9.051, allocations: 0.6428 MB / 4.459 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005828/9.051, allocations: 96.12 kB / 4.459 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003266/9.052, allocations: 59.11 kB / 4.459 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/9.053, allocations: 1.507 MB / 4.46 GB, free: 321.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/9.053, allocations: 10.44 kB / 4.46 GB, free: 321.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01423/9.068, allocations: 6.436 MB / 4.466 GB, free: 320.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01692/9.085, allocations: 8.891 MB / 4.475 GB, free: 319.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00315/9.088, allocations: 1.062 MB / 4.476 GB, free: 318.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00145/9.089, allocations: 13.88 kB / 4.476 GB, free: 318.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004475/9.094, allocations: 271.7 kB / 4.476 GB, free: 318.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000312/9.094, allocations: 161.5 kB / 4.477 GB, free: 318.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004292/9.095, allocations: 139.3 kB / 4.477 GB, free: 318.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.004813/9.099, allocations: 2.377 MB / 4.479 GB, free: 318.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01292/9.112, allocations: 2.758 MB / 4.482 GB, free: 318.5 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.004053/9.116, allocations: 1.652 MB / 4.483 GB, free: 318.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01099/9.127, allocations: 5.487 MB / 4.489 GB, free: 318 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.896e-05/9.127, allocations: 7.25 kB / 4.489 GB, free: 318 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003437/9.131, allocations: 1.733 MB / 4.49 GB, free: 317.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009285/9.14, allocations: 1.665 MB / 4.492 GB, free: 317.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01709/9.157, allocations: 8.07 MB / 4.5 GB, free: 316.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003933/9.161, allocations: 3.635 MB / 4.503 GB, free: 315.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.163e-06/9.161, allocations: 0 / 4.503 GB, free: 315.6 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat does not exist to compare? outputFormat=mat