Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.Tubular,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular",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.036/2.036, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.00142/0.00142, allocations: 184.4 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.629/1.629, allocations: 221.3 MB / 0.7819 GB, free: 1.387 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.001106/0.001106, allocations: 104.7 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6466/0.6478, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.9616, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.587/5.549, allocations: 2.199 GB / 3.404 GB, free: 116.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/5.549, allocations: 95.41 kB / 3.404 GB, free: 116.2 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: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 3.001/8.55, allocations: 0.947 GB / 4.351 GB, free: 58.46 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/8.55, allocations: 9 kB / 4.351 GB, free: 58.45 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009228/8.559, allocations: 1.395 MB / 4.353 GB, free: 57.05 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/8.575, allocations: 5.623 MB / 4.358 GB, free: 51.36 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/8.575, allocations: 120 kB / 4.358 GB, free: 51.25 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001927/8.577, allocations: 224 kB / 4.359 GB, free: 51.03 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009978/8.587, allocations: 4.481 MB / 4.363 GB, free: 46.54 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/8.599, allocations: 4.622 MB / 4.368 GB, free: 41.76 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001896/8.599, allocations: 11.92 kB / 4.368 GB, free: 41.75 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001268/8.601, allocations: 8 kB / 4.368 GB, free: 41.74 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/8.601, allocations: 183.3 kB / 4.368 GB, free: 41.56 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03686/8.638, allocations: 19.54 MB / 4.387 GB, free: 21.33 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00528/8.643, allocations: 2.999 MB / 4.39 GB, free: 18.34 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/8.646, allocations: 1.657 MB / 4.391 GB, free: 16.67 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001952/8.648, allocations: 1.872 MB / 4.393 GB, free: 14.41 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003177/8.651, allocations: 1.808 MB / 4.395 GB, free: 12.55 MB / 1.151 GB Notification: Performance of pre-optimization done (n=268): time 7.554e-06/8.651, allocations: 0 / 4.395 GB, free: 12.55 MB / 1.151 GB Notification: Performance of matching and sorting (n=268): time 0.01124/8.662, allocations: 3.733 MB / 4.399 GB, free: 8.77 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/8.662, allocations: 283.1 kB / 4.399 GB, free: 8.43 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/8.668, allocations: 3.068 MB / 4.402 GB, free: 5.363 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0009042/8.669, allocations: 37.7 kB / 4.402 GB, free: 5.32 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001906/8.671, allocations: 1.407 MB / 4.403 GB, free: 3.891 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001941/8.673, allocations: 0.8698 MB / 4.404 GB, free: 3.008 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005739/8.673, allocations: 0 / 4.404 GB, free: 3.008 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002933/8.674, allocations: 431.9 kB / 4.405 GB, free: 2.578 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/8.676, allocations: 1.333 MB / 4.406 GB, free: 1.242 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5176/9.194, allocations: 2.001 MB / 4.408 GB, free: 339.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01318/9.207, allocations: 2.891 MB / 4.411 GB, free: 339.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-05/9.207, allocations: 11.09 kB / 4.411 GB, free: 339.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01798/9.225, allocations: 4.982 MB / 4.415 GB, free: 339.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001504/9.227, allocations: 7.3 MB / 4.423 GB, free: 331.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/9.227, allocations: 18.5 kB / 4.423 GB, free: 331.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006594/9.227, allocations: 112 kB / 4.423 GB, free: 331.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004459/9.232, allocations: 0.8244 MB / 4.424 GB, free: 331.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/9.234, allocations: 2.098 MB / 4.426 GB, free: 330.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005171/9.239, allocations: 439.9 kB / 4.426 GB, free: 330.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006688/9.24, allocations: 145.3 kB / 4.426 GB, free: 330.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/9.24, allocations: 3.875 kB / 4.426 GB, free: 330.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01982/9.26, allocations: 4.614 MB / 4.431 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-05/9.26, allocations: 24.33 kB / 4.431 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007001/9.261, allocations: 111.6 kB / 4.431 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/9.266, allocations: 0.8145 MB / 4.432 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/9.268, allocations: 1.506 MB / 4.433 GB, free: 328.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005651/9.273, allocations: 399.5 kB / 4.433 GB, free: 328.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/9.274, allocations: 148.4 kB / 4.434 GB, free: 328.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 (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.001887/9.276, allocations: 181.6 kB / 4.434 GB, free: 328.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001771/9.278, allocations: 359.4 kB / 4.434 GB, free: 328.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/9.294, allocations: 4.589 MB / 4.439 GB, free: 328.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.215e-05/9.294, allocations: 36.17 kB / 4.439 GB, free: 328.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/9.294, allocations: 0 / 4.439 GB, free: 328.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0107/9.304, allocations: 3.674 MB / 4.442 GB, free: 328 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02362/9.328, allocations: 8.762 MB / 4.451 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/9.328, allocations: 4.969 kB / 4.451 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003923/9.332, allocations: 0.6455 MB / 4.451 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005982/9.333, allocations: 91.92 kB / 4.451 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000505/9.333, allocations: 56.69 kB / 4.452 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/9.335, allocations: 2.093 MB / 4.454 GB, free: 325.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/9.335, allocations: 3.062 kB / 4.454 GB, free: 325.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01538/9.35, allocations: 6.084 MB / 4.46 GB, free: 325.1 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01764/9.368, allocations: 8.582 MB / 4.468 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003345/9.371, allocations: 1.058 MB / 4.469 GB, free: 323.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/9.373, allocations: 14.23 kB / 4.469 GB, free: 323.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005058/9.378, allocations: 293 kB / 4.469 GB, free: 323.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000441/9.379, allocations: 156.3 kB / 4.469 GB, free: 323.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005534/9.379, allocations: 130.8 kB / 4.469 GB, free: 323.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.005379/9.385, allocations: 2.371 MB / 4.472 GB, free: 323.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01415/9.399, allocations: 2.745 MB / 4.474 GB, free: 323.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (288): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.00431/9.403, allocations: 1.646 MB / 4.476 GB, free: 323.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01148/9.415, allocations: 5.521 MB / 4.481 GB, free: 323 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/9.415, allocations: 5.078 kB / 4.481 GB, free: 323 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003762/9.419, allocations: 1.734 MB / 4.483 GB, free: 322.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01023/9.429, allocations: 1.68 MB / 4.485 GB, free: 322.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/9.454, allocations: 7.981 MB / 4.493 GB, free: 321.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007327/9.461, allocations: 3.637 MB / 4.496 GB, free: 320.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.503e-06/9.461, allocations: 0 / 4.496 GB, free: 320.7 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat does not exist to compare? outputFormat=mat