Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.398/1.398, allocations: 252 MB / 267.3 MB, free: 10.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009581/0.0009583, allocations: 172.8 kB / 327 MB, free: 2.062 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.4 MB / 0.578 GB, free: 20.38 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008802/0.0008802, allocations: 92.31 kB / 0.6826 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003355, allocations: 12.28 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1953, allocations: 106.3 MB / 0.9009 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.002671/0.198, allocations: 2.618 MB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.2, allocations: 1.138 MB / 0.9046 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003643/0.2004, allocations: 15.94 kB / 0.9046 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.2006, allocations: 59.45 kB / 0.9047 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.2008, allocations: 59.56 kB / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006745/0.2015, allocations: 305.4 kB / 0.905 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005545/0.2021, allocations: 0.6482 MB / 0.9056 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004904/0.2026, allocations: 408.7 kB / 0.906 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2028, allocations: 175.1 kB / 0.9062 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.203, allocations: 186.9 kB / 0.9064 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.203, allocations: 16 kB / 0.9064 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.735e-05/0.2031, allocations: 28 kB / 0.9064 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.386e-05/0.2032, allocations: 87.53 kB / 0.9065 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.2034, allocations: 236.3 kB / 0.9067 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000453/0.2038, allocations: 0.6464 MB / 0.9074 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2038, allocations: 0 / 0.9074 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2039, allocations: 0 / 0.9074 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.705e-05/0.2039, allocations: 0 / 0.9074 GB, free: 57.01 MB / 0.6042 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.001436/0.2053, allocations: 0.8003 MB / 0.9081 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.2054, allocations: 12.03 kB / 0.9082 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.2055, allocations: 82.7 kB / 0.9082 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.685e-05/0.2056, allocations: 60.28 kB / 0.9083 GB, free: 56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.2061, allocations: 436.6 kB / 0.9087 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.2061, allocations: 41.38 kB / 0.9087 GB, free: 55.49 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.2062, allocations: 44.38 kB / 0.9088 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008491/0.2071, allocations: 0.5509 MB / 0.9093 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2071, allocations: 0 / 0.9093 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.2071, allocations: 23.92 kB / 0.9093 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.2071, allocations: 12 kB / 0.9094 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000889/0.208, allocations: 427.7 kB / 0.9098 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.2098, allocations: 1.86 MB / 0.9116 GB, free: 52.47 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008163/0.2107, allocations: 365 kB / 0.9119 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003498/0.211, allocations: 182 kB / 0.9121 GB, free: 51.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.2111, allocations: 7.984 kB / 0.9121 GB, free: 51.92 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004814/0.2116, allocations: 225.5 kB / 0.9123 GB, free: 51.69 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=34): time 2.134e-06/0.2116, allocations: 4 kB / 0.9123 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34): time 0.001127/0.2127, allocations: 0.5012 MB / 0.9128 GB, free: 51.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.2128, allocations: 63.41 kB / 0.9129 GB, free: 51.1 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.2131, allocations: 397.5 kB / 0.9133 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.2132, allocations: 45.7 kB / 0.9133 GB, free: 50.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2133, allocations: 256.1 kB / 0.9135 GB, free: 50.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.242e-05/0.2134, allocations: 102.6 kB / 0.9136 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.2134, allocations: 4 kB / 0.9136 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.729e-05/0.2135, allocations: 362.8 kB / 0.914 GB, free: 49.93 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.2139, allocations: 161 kB / 0.9141 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.2143, allocations: 273.9 kB / 0.9144 GB, free: 49.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.215, allocations: 427.4 kB / 0.9148 GB, free: 49 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.215, allocations: 7.938 kB / 0.9148 GB, free: 48.99 MB / 0.6042 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009821/0.216, allocations: 0.5338 MB / 0.9153 GB, free: 48.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.216, allocations: 37.7 kB / 0.9154 GB, free: 48.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2161, allocations: 4 kB / 0.9154 GB, free: 48.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.2161, allocations: 4.25 kB / 0.9154 GB, free: 48.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.2164, allocations: 87.81 kB / 0.9155 GB, free: 48.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.2164, allocations: 7.938 kB / 0.9155 GB, free: 48.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.2168, allocations: 83.39 kB / 0.9156 GB, free: 48.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.14e-05/0.2168, allocations: 20 kB / 0.9156 GB, free: 48.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,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,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.217, allocations: 209.6 kB / 0.9158 GB, free: 47.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.2171, allocations: 39.53 kB / 0.9158 GB, free: 47.95 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008094/0.2179, allocations: 413.5 kB / 0.9162 GB, free: 47.54 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.2179, allocations: 4 kB / 0.9162 GB, free: 47.53 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2179, allocations: 0 / 0.9162 GB, free: 47.53 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2179, allocations: 3.984 kB / 0.9162 GB, free: 47.53 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/0.2193, allocations: 0.979 MB / 0.9172 GB, free: 46.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2193, allocations: 0 / 0.9172 GB, free: 46.49 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.2195, allocations: 59.94 kB / 0.9172 GB, free: 46.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.2195, allocations: 0 / 0.9172 GB, free: 46.43 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.2196, allocations: 11.98 kB / 0.9172 GB, free: 46.42 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2196, allocations: 0 / 0.9172 GB, free: 46.42 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2196, allocations: 4 kB / 0.9172 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.2207, allocations: 0.6675 MB / 0.9179 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.2208, allocations: 148.5 kB / 0.918 GB, free: 45.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.2209, allocations: 11.94 kB / 0.9181 GB, free: 45.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.2212, allocations: 48.02 kB / 0.9181 GB, free: 45.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2213, allocations: 43.88 kB / 0.9181 GB, free: 45.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.2214, allocations: 12 kB / 0.9182 GB, free: 45.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002219/0.2216, allocations: 271.2 kB / 0.9184 GB, free: 45.18 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2216, allocations: 4 kB / 0.9184 GB, free: 45.18 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003574/0.222, allocations: 95.69 kB / 0.9185 GB, free: 45.08 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (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: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001355/0.2233, allocations: 1.23 MB / 0.9197 GB, free: 43.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008573/0.2242, allocations: 451.5 kB / 0.9201 GB, free: 43.37 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2242, allocations: 0 / 0.9201 GB, free: 43.37 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.2246, allocations: 195.7 kB / 0.9203 GB, free: 43.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.2251, allocations: 95.92 kB / 0.9204 GB, free: 43.09 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005068/0.2302, allocations: 4.197 MB / 0.9245 GB, free: 38.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.2304, allocations: 0.8198 MB / 0.9253 GB, free: 37.86 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002169/0.2307, allocations: 59.42 kB / 0.9254 GB, free: 37.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.2309, allocations: 159.4 kB / 0.9255 GB, free: 37.64 MB / 0.6042 GB Notification: Performance of SimCode: time 3.9e-07/0.2309, allocations: 3.938 kB / 0.9255 GB, free: 37.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.2492, allocations: 8.462 MB / 0.9338 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.2494, allocations: 225.3 kB / 0.934 GB, free: 29.13 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.497, allocations: 0 / 0.934 GB, free: 29.13 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)