Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.032/2.032, 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.00118/0.00118, allocations: 177.4 kB / 487 MB, free: 5.359 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.421/1.421, 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.001117/0.001116, allocations: 96.58 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5887/0.5898, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.8376, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.539/5.377, allocations: 2.119 GB / 3.325 GB, free: 178.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/5.377, allocations: 90.33 kB / 3.325 GB, free: 178.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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 5.678/11.05, allocations: 1.875 GB / 5.2 GB, free: 75.39 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/11.06, allocations: 8 kB / 5.2 GB, free: 75.38 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/11.07, allocations: 1.663 MB / 5.201 GB, free: 73.71 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03575/11.1, allocations: 16.96 MB / 5.218 GB, free: 56.66 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/11.1, allocations: 120 kB / 5.218 GB, free: 56.54 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00141/11.1, allocations: 227.9 kB / 5.218 GB, free: 56.32 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009625/11.11, allocations: 4.595 MB / 5.223 GB, free: 51.72 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009985/11.12, allocations: 4.756 MB / 5.227 GB, free: 46.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.702e-05/11.12, allocations: 7.938 kB / 5.227 GB, free: 46.79 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005525/11.12, allocations: 4 kB / 5.227 GB, free: 46.79 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001165/11.13, allocations: 167.4 kB / 5.227 GB, free: 46.62 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03514/11.16, allocations: 19.32 MB / 5.246 GB, free: 26.83 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005198/11.17, allocations: 3.186 MB / 5.249 GB, free: 23.65 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002384/11.17, allocations: 1.675 MB / 5.251 GB, free: 21.96 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002599/11.17, allocations: 3.358 MB / 5.254 GB, free: 17.89 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003195/11.17, allocations: 1.897 MB / 5.256 GB, free: 15.95 MB / 1.151 GB Notification: Performance of pre-optimization done (n=285): time 7.214e-06/11.17, allocations: 0 / 5.256 GB, free: 15.95 MB / 1.151 GB Notification: Performance of matching and sorting (n=285): time 0.01917/11.19, allocations: 4.602 MB / 5.261 GB, free: 11.27 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/11.19, allocations: 291.3 kB / 5.261 GB, free: 10.92 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006925/11.2, allocations: 2.966 MB / 5.264 GB, free: 7.953 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001113/11.2, allocations: 29.7 kB / 5.264 GB, free: 7.918 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001997/11.2, allocations: 1.384 MB / 5.265 GB, free: 6.512 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.00242/11.21, allocations: 0.9314 MB / 5.266 GB, free: 5.566 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007562/11.21, allocations: 0 / 5.266 GB, free: 5.566 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0003534/11.21, allocations: 428.2 kB / 5.267 GB, free: 5.141 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002959/11.21, allocations: 1.396 MB / 5.268 GB, free: 3.742 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003207/11.21, allocations: 2.017 MB / 5.27 GB, free: 1.484 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4853/11.7, allocations: 3.098 MB / 5.273 GB, free: 336.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.435e-05/11.7, allocations: 7.625 kB / 5.273 GB, free: 336.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.02232/11.72, allocations: 5.388 MB / 5.278 GB, free: 336.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001061/11.72, allocations: 6.451 MB / 5.285 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/11.72, allocations: 14.38 kB / 5.285 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/11.72, allocations: 118.2 kB / 5.285 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/11.73, allocations: 0.8248 MB / 5.285 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/11.73, allocations: 2.106 MB / 5.288 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005067/11.73, allocations: 441.3 kB / 5.288 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005903/11.73, allocations: 201.9 kB / 5.288 GB, free: 328.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.236e-06/11.73, allocations: 3.531 kB / 5.288 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01961/11.75, allocations: 4.919 MB / 5.293 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/11.75, allocations: 15.97 kB / 5.293 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005959/11.75, allocations: 108.3 kB / 5.293 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004172/11.76, allocations: 0.822 MB / 5.294 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/11.76, allocations: 1.499 MB / 5.295 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006157/11.77, allocations: 403 kB / 5.296 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008649/11.77, allocations: 205 kB / 5.296 GB, free: 326.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (379): * Single equations (assignments): 377 * 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.0009384/11.77, allocations: 174.6 kB / 5.296 GB, free: 326.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001729/11.77, allocations: 439 kB / 5.296 GB, free: 326.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01855/11.79, allocations: 6.171 MB / 5.303 GB, free: 326.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.46e-05/11.79, allocations: 36.09 kB / 5.303 GB, free: 326.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/11.79, allocations: 0 / 5.303 GB, free: 326.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01348/11.8, allocations: 4.654 MB / 5.307 GB, free: 326 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02226/11.83, allocations: 10.02 MB / 5.317 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.679e-06/11.83, allocations: 0 / 5.317 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003462/11.83, allocations: 0.6268 MB / 5.317 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/11.83, allocations: 497.3 kB / 5.318 GB, free: 325.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/11.83, allocations: 68.31 kB / 5.318 GB, free: 325.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005343/11.84, allocations: 7.681 MB / 5.326 GB, free: 318.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/11.84, allocations: 3.75 kB / 5.326 GB, free: 318.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01834/11.85, allocations: 7.445 MB / 5.333 GB, free: 318.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02169/11.88, allocations: 10.27 MB / 5.343 GB, free: 317.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003273/11.88, allocations: 1.13 MB / 5.344 GB, free: 316.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/11.88, allocations: 13.8 kB / 5.344 GB, free: 316.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004254/11.88, allocations: 272.6 kB / 5.344 GB, free: 316.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003345/11.88, allocations: 169.9 kB / 5.344 GB, free: 316.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003397/11.89, allocations: 132.8 kB / 5.344 GB, free: 316.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.003403/11.89, allocations: 2.288 MB / 5.347 GB, free: 316.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01354/11.9, allocations: 3.172 MB / 5.35 GB, free: 316.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (276): * Single equations (assignments): 259 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004271/11.91, allocations: 1.88 MB / 5.352 GB, free: 316.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.009425/11.92, allocations: 5.855 MB / 5.357 GB, free: 316.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/11.92, allocations: 7.188 kB / 5.357 GB, free: 316.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00331/11.92, allocations: 2.028 MB / 5.359 GB, free: 316 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00917/11.93, allocations: 1.628 MB / 5.361 GB, free: 316 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04632/11.97, allocations: 22.18 MB / 5.383 GB, free: 314.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005034/11.98, allocations: 3.802 MB / 5.386 GB, free: 313.7 MB / 1.151 GB Notification: Performance of SimCode: time 6.91e-07/11.98, allocations: 0 / 5.386 GB, free: 313.7 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat does not exist to compare? outputFormat=mat