Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",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 1.806/1.806, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009388/0.0009389, allocations: 177.3 kB / 490.8 MB, free: 1.969 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.148/1.148, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.0008503/0.0008503, allocations: 102 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4086/0.4095, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.5948, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/1.088, allocations: 156.9 MB / 1.365 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/1.089, allocations: 86.09 kB / 1.365 GB, free: 17.15 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.02137/1.11, allocations: 9.243 MB / 1.374 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/1.11, allocations: 9.156 kB / 1.374 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/1.11, allocations: 61.61 kB / 1.374 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005622/1.111, allocations: 420.8 kB / 1.374 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/1.111, allocations: 17.11 kB / 1.375 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.979e-05/1.111, allocations: 29.69 kB / 1.375 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005827/1.112, allocations: 316.9 kB / 1.375 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006947/1.112, allocations: 453.8 kB / 1.375 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/1.112, allocations: 4 kB / 1.375 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.982e-05/1.112, allocations: 2.547 kB / 1.375 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/1.112, allocations: 11.38 kB / 1.375 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/1.114, allocations: 1.788 MB / 1.377 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005378/1.115, allocations: 299.3 kB / 1.377 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/1.115, allocations: 124.1 kB / 1.377 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/1.115, allocations: 3.812 kB / 1.377 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/1.116, allocations: 206.8 kB / 1.378 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.633e-06/1.116, allocations: 3.938 kB / 1.378 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004929/1.116, allocations: 261.4 kB / 1.378 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/1.116, allocations: 146.5 kB / 1.378 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/1.116, allocations: 287.5 kB / 1.378 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/1.116, allocations: 35.48 kB / 1.378 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/1.117, allocations: 218.7 kB / 1.379 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.128e-05/1.117, allocations: 94.19 kB / 1.379 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/1.117, allocations: 0.9688 kB / 1.379 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001233/1.117, allocations: 349.2 kB / 1.379 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/1.117, allocations: 114 kB / 1.379 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/1.117, allocations: 233 kB / 1.379 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/1.117, allocations: 123.7 kB / 1.379 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.117, allocations: 1.094 kB / 1.379 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006055/1.118, allocations: 378.2 kB / 1.38 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/1.118, allocations: 7.906 kB / 1.38 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.118, allocations: 4.125 kB / 1.38 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/1.118, allocations: 6.344 kB / 1.38 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/1.118, allocations: 94.56 kB / 1.38 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/1.119, allocations: 8.641 kB / 1.38 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003982/1.119, allocations: 65.36 kB / 1.38 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/1.119, allocations: 26.62 kB / 1.38 GB, free: 29.43 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.119, allocations: 134.8 kB / 1.38 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/1.119, allocations: 37.2 kB / 1.38 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005434/1.12, allocations: 290 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/1.12, allocations: 8.125 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.12, allocations: 1.156 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.12, allocations: 2.938 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/1.121, allocations: 0.819 MB / 1.381 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/1.121, allocations: 1.984 kB / 1.381 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/1.121, allocations: 67.39 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/1.121, allocations: 6.562 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/1.121, allocations: 3.375 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/1.121, allocations: 2.312 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.121, allocations: 2.109 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007118/1.122, allocations: 0.5532 MB / 1.382 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009847/1.123, allocations: 1.075 MB / 1.383 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/1.123, allocations: 147.9 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.732e-05/1.123, allocations: 7.438 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/1.124, allocations: 56.33 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/1.124, allocations: 45.83 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/1.124, allocations: 13.69 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000261/1.124, allocations: 204.2 kB / 1.383 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000934/1.125, allocations: 90.83 kB / 1.383 GB, free: 27.89 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001646/1.125, allocations: 122 kB / 1.384 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005064/1.126, allocations: 326.5 kB / 1.384 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/1.126, allocations: 5.031 kB / 1.384 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002425/1.126, allocations: 157.3 kB / 1.384 GB, free: 27.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/1.126, allocations: 71.08 kB / 1.384 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/1.127, allocations: 0.5295 MB / 1.385 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005958/1.128, allocations: 0.8773 MB / 1.385 GB, free: 26.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.128, allocations: 4 kB / 1.385 GB, free: 26.81 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)