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.001209/0.001209, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 60.25 kB / 0.8992 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2946, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.005202/0.2999, allocations: 2.942 MB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002563/0.3025, allocations: 1.114 MB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006292/0.3031, allocations: 19.88 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004207/0.3036, allocations: 79.19 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004579/0.3041, allocations: 83.14 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.3052, allocations: 339.5 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001018/0.3062, allocations: 0.7069 MB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008047/0.307, allocations: 492.6 kB / 1.059 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004038/0.3074, allocations: 243.1 kB / 1.059 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004178/0.3079, allocations: 254.7 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001812/0.3081, allocations: 68 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.3083, allocations: 84 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.3085, allocations: 135.6 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003253/0.3088, allocations: 282.5 kB / 1.06 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008917/0.3097, allocations: 0.7243 MB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3097, allocations: 0 / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3097, allocations: 0 / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.662e-05/0.3097, allocations: 0 / 1.06 GB, free: 0.7383 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.002116/0.3119, allocations: 0.8792 MB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.3119, allocations: 12.62 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.3121, allocations: 90.64 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.3122, allocations: 64.22 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/0.3129, allocations: 428.7 kB / 1.062 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.313, allocations: 41.36 kB / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-05/0.3131, allocations: 52.31 kB / 1.062 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.3141, allocations: 0.5353 MB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3141, allocations: 0 / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.3142, allocations: 20 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.3142, allocations: 12 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3152, allocations: 399.6 kB / 1.063 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.3178, allocations: 1.856 MB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009593/0.3187, allocations: 359.5 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/0.3192, allocations: 177.6 kB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.3192, allocations: 7.938 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005977/0.3198, allocations: 246.2 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 2.184e-06/0.3198, allocations: 0 / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001285/0.3211, allocations: 492.7 kB / 1.066 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.3212, allocations: 81.11 kB / 1.066 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.3217, allocations: 405.4 kB / 1.066 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.3217, allocations: 45.7 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.3219, allocations: 256.2 kB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.747e-05/0.322, allocations: 94.73 kB / 1.067 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.3222, allocations: 106.1 kB / 1.067 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3223, allocations: 358.8 kB / 1.067 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004176/0.3228, allocations: 157 kB / 1.067 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.3233, allocations: 265.9 kB / 1.067 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008494/0.3241, allocations: 407.4 kB / 1.068 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3241, allocations: 0 / 1.068 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001108/0.3252, allocations: 0.5224 MB / 1.068 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.216e-05/0.3253, allocations: 42.88 kB / 1.068 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3253, allocations: 4 kB / 1.068 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3253, allocations: 8.406 kB / 1.068 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.3257, allocations: 71.89 kB / 1.068 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.3257, allocations: 15.92 kB / 1.068 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004486/0.3261, allocations: 67.5 kB / 1.069 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/0.3262, allocations: 19.98 kB / 1.069 GB, free: 7.82 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.0002381/0.3264, allocations: 215.2 kB / 1.069 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.205e-05/0.3265, allocations: 47.38 kB / 1.069 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009302/0.3275, allocations: 381.5 kB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3275, allocations: 4 kB / 1.069 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3275, allocations: 4 kB / 1.069 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3275, allocations: 0 / 1.069 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3291, allocations: 0.9556 MB / 1.07 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3291, allocations: 7.969 kB / 1.07 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.3293, allocations: 47.95 kB / 1.07 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.3294, allocations: 4 kB / 1.07 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.3294, allocations: 4 kB / 1.07 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.3294, allocations: 7.984 kB / 1.07 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3294, allocations: 3.938 kB / 1.07 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.3307, allocations: 0.642 MB / 1.071 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.3309, allocations: 152.5 kB / 1.071 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.331, allocations: 8 kB / 1.071 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.3313, allocations: 40.02 kB / 1.071 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.3314, allocations: 47.88 kB / 1.071 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.3314, allocations: 12 kB / 1.071 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002677/0.3317, allocations: 263.2 kB / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3317, allocations: 0 / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004279/0.3322, allocations: 103.7 kB / 1.071 GB, free: 4.785 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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.001616/0.3338, allocations: 1.207 MB / 1.073 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001023/0.3348, allocations: 451.8 kB / 1.073 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3348, allocations: 0 / 1.073 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004433/0.3353, allocations: 187.6 kB / 1.073 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/0.3358, allocations: 99.05 kB / 1.073 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005916/0.3418, allocations: 4.005 MB / 1.077 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.3422, allocations: 0.835 MB / 1.078 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000221/0.3424, allocations: 51.45 kB / 1.078 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.3427, allocations: 163.4 kB / 1.078 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of SimCode: time 3.8e-07/0.3427, allocations: 0 / 1.078 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04245/0.3851, allocations: 9.066 MB / 1.087 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.298, allocations: 8.812 kB / 1.087 GB, free: 4.648 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)