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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 191 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.518/2.518, allocations: 461.9 MB / 0.7344 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 62.66 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2319, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003677/0.2356, allocations: 3.024 MB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001511/0.2372, allocations: 1.099 MB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.2374, allocations: 15.94 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.2376, allocations: 55.52 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.2377, allocations: 59.52 kB / 1.057 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.2383, allocations: 310.8 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005953/0.2389, allocations: 0.7147 MB / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005038/0.2395, allocations: 492.6 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.2397, allocations: 247.1 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.2399, allocations: 250.8 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.348e-05/0.24, allocations: 72 kB / 1.059 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.2401, allocations: 75.98 kB / 1.059 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.2402, allocations: 139.6 kB / 1.059 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.2404, allocations: 278.5 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005364/0.2409, allocations: 0.7204 MB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2409, allocations: 0 / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2409, allocations: 4 kB / 1.06 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.241, allocations: 4 kB / 1.06 GB, free: 1.102 MB / 0.8106 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.00138/0.2423, allocations: 0.8845 MB / 1.061 GB, free: 164 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2424, allocations: 8.625 kB / 1.061 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.562e-05/0.2425, allocations: 86.7 kB / 1.061 GB, free: 60 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.977e-05/0.2426, allocations: 56.28 kB / 1.061 GB, free: 4 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.2431, allocations: 436.6 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.2432, allocations: 45.38 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.435e-05/0.2432, allocations: 48.38 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/0.2441, allocations: 0.5391 MB / 1.062 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2441, allocations: 4 kB / 1.062 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.2442, allocations: 16 kB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2442, allocations: 12 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008618/0.2451, allocations: 403.6 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.247, allocations: 1.852 MB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008259/0.2478, allocations: 361.5 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003618/0.2482, allocations: 173.6 kB / 1.065 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.2482, allocations: 11.94 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005011/0.2487, allocations: 242.2 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 3.006e-06/0.2488, allocations: 4 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001118/0.2499, allocations: 480.7 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.2499, allocations: 89.09 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.2503, allocations: 405.5 kB / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/0.2503, allocations: 37.7 kB / 1.066 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.2505, allocations: 256.2 kB / 1.066 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.307e-05/0.2506, allocations: 94.73 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.2507, allocations: 114.1 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2509, allocations: 358.7 kB / 1.067 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.2512, allocations: 153 kB / 1.067 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004249/0.2517, allocations: 261.8 kB / 1.067 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.2524, allocations: 423.3 kB / 1.067 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2524, allocations: 4 kB / 1.067 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009622/0.2534, allocations: 0.5147 MB / 1.068 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.2534, allocations: 34.8 kB / 1.068 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2534, allocations: 4 kB / 1.068 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2535, allocations: 4 kB / 1.068 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.2538, allocations: 75.88 kB / 1.068 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.2538, allocations: 7.938 kB / 1.068 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.2541, allocations: 75.7 kB / 1.068 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.2542, allocations: 20 kB / 1.068 GB, free: 8.188 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002036/0.2544, allocations: 209.6 kB / 1.068 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.43e-05/0.2544, allocations: 47.38 kB / 1.068 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008481/0.2553, allocations: 385.5 kB / 1.069 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2553, allocations: 4 kB / 1.069 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2553, allocations: 4 kB / 1.069 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.2553, allocations: 3.984 kB / 1.069 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.2567, allocations: 0.9517 MB / 1.07 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2567, allocations: 4 kB / 1.07 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.2569, allocations: 47.89 kB / 1.07 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.257, allocations: 0 / 1.07 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.257, allocations: 20.03 kB / 1.07 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.257, allocations: 4 kB / 1.07 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.257, allocations: 3.938 kB / 1.07 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.2582, allocations: 0.6458 MB / 1.07 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.2583, allocations: 148.6 kB / 1.07 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.766e-05/0.2584, allocations: 8 kB / 1.07 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.2587, allocations: 36.02 kB / 1.07 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.2588, allocations: 47.89 kB / 1.071 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.2588, allocations: 15.98 kB / 1.071 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002435/0.2591, allocations: 263.2 kB / 1.071 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2591, allocations: 0 / 1.071 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003547/0.2594, allocations: 95.69 kB / 1.071 GB, free: 5.152 MB / 0.8262 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.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00146/0.2609, allocations: 1.215 MB / 1.072 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009312/0.2619, allocations: 448 kB / 1.072 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2619, allocations: 192 / 1.072 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004075/0.2623, allocations: 191.6 kB / 1.073 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.2628, allocations: 87.62 kB / 1.073 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005435/0.2682, allocations: 4.167 MB / 1.077 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.2686, allocations: 0.8235 MB / 1.078 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000199/0.2688, allocations: 55.44 kB / 1.078 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.269, allocations: 163.3 kB / 1.078 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.269, allocations: 0 / 1.078 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3642/0.6332, allocations: 8.884 MB / 1.087 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003613/0.6336, allocations: 217.6 kB / 1.087 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.712, allocations: 0 / 1.087 GB, free: 4.852 MB / 0.8419 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/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)