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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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.001475/0.001475, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001775/0.001775, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.72/2.72, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.836/4.836, allocations: 409.2 MB / 0.6838 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006388/0.000639, allocations: 8 kB / 0.8375 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.754/1.755, allocations: 146.8 MB / 0.9809 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.007445/1.763, allocations: 2.494 MB / 0.9833 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005252/1.768, allocations: 1.052 MB / 0.9843 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/1.769, allocations: 15.94 kB / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003792/1.77, allocations: 43.53 kB / 0.9844 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000728/1.77, allocations: 91.59 kB / 0.9845 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001722/1.772, allocations: 250.9 kB / 0.9847 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001779/1.774, allocations: 412.4 kB / 0.9851 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/1.775, allocations: 356.2 kB / 0.9854 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/1.776, allocations: 179.1 kB / 0.9856 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/1.776, allocations: 179 kB / 0.9858 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/1.776, allocations: 20 kB / 0.9858 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/1.776, allocations: 27.98 kB / 0.9858 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001762/1.777, allocations: 83.61 kB / 0.9859 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002449/1.777, allocations: 105.5 kB / 0.986 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001338/1.778, allocations: 0.54 MB / 0.9865 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/1.778, allocations: 0 / 0.9865 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.04e-06/1.778, allocations: 4 kB / 0.9865 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.706e-05/1.778, allocations: 4 kB / 0.9865 GB, free: 0.6094 MB / 0.7325 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.00337/1.782, allocations: 0.7971 MB / 0.9873 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 9.723e-05/1.782, allocations: 15.98 kB / 0.9873 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/1.782, allocations: 82.52 kB / 0.9874 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/1.782, allocations: 59.34 kB / 0.9875 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/1.784, allocations: 423.6 kB / 0.9879 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-05/1.784, allocations: 37 kB / 0.9879 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/1.784, allocations: 52 kB / 0.988 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002102/1.786, allocations: 0.5468 MB / 0.9885 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/1.786, allocations: 0 / 0.9885 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/1.786, allocations: 20 kB / 0.9885 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/1.786, allocations: 8 kB / 0.9885 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/1.788, allocations: 419.6 kB / 0.9889 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/1.793, allocations: 1.856 MB / 0.9907 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/1.795, allocations: 397.5 kB / 0.9911 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 5.274e-05/1.795, allocations: 4 kB / 0.9911 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/1.796, allocations: 249.8 kB / 0.9914 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=35): time 3.487e-06/1.796, allocations: 0 / 0.9914 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of matching and sorting (n=35): time 0.002535/1.798, allocations: 0.5036 MB / 0.9919 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/1.799, allocations: 89.09 kB / 0.9919 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000997/1.8, allocations: 405.3 kB / 0.9923 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001133/1.8, allocations: 41.7 kB / 0.9924 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004141/1.8, allocations: 256.2 kB / 0.9926 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/1.8, allocations: 98.73 kB / 0.9927 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.356e-05/1.8, allocations: 8 kB / 0.9927 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0005345/1.801, allocations: 358.8 kB / 0.993 GB, free: 9.648 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/1.802, allocations: 165 kB / 0.9932 GB, free: 9.488 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/1.803, allocations: 277.8 kB / 0.9935 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008097/1.804, allocations: 191.5 kB / 0.9937 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/1.804, allocations: 4 kB / 0.9937 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002082/1.806, allocations: 0.5419 MB / 0.9942 GB, free: 8.426 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.956e-05/1.806, allocations: 41.64 kB / 0.9942 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/1.806, allocations: 4 kB / 0.9942 GB, free: 8.375 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.511e-05/1.806, allocations: 4.219 kB / 0.9942 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/1.806, allocations: 83.88 kB / 0.9943 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.661e-05/1.807, allocations: 7.938 kB / 0.9943 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007462/1.807, allocations: 91.34 kB / 0.9944 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.142e-05/1.807, allocations: 20 kB / 0.9944 GB, free: 8.172 MB / 0.7481 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,$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,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 (59): * Single equations (assignments): 58 * 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.0005976/1.808, allocations: 201.6 kB / 0.9946 GB, free: 7.969 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/1.808, allocations: 43.53 kB / 0.9947 GB, free: 7.926 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/1.81, allocations: 418 kB / 0.9951 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/1.81, allocations: 4 kB / 0.9951 GB, free: 7.508 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/1.81, allocations: 0 / 0.9951 GB, free: 7.508 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/1.81, allocations: 3.984 kB / 0.9951 GB, free: 7.504 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/1.813, allocations: 0.9787 MB / 0.996 GB, free: 6.465 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/1.813, allocations: 4.031 kB / 0.996 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/1.814, allocations: 59.89 kB / 0.9961 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-05/1.814, allocations: 0 / 0.9961 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/1.814, allocations: 8 kB / 0.9961 GB, free: 6.395 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-05/1.814, allocations: 7.953 kB / 0.9961 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.814, allocations: 0 / 0.9961 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/1.817, allocations: 0.7023 MB / 0.9968 GB, free: 5.648 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004528/1.817, allocations: 144.4 kB / 0.9969 GB, free: 5.488 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/1.817, allocations: 15.98 kB / 0.9969 GB, free: 5.473 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005703/1.818, allocations: 43.95 kB / 0.997 GB, free: 5.43 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/1.818, allocations: 51.86 kB / 0.997 GB, free: 5.379 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.328e-05/1.818, allocations: 15.98 kB / 0.997 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008111/1.819, allocations: 259.2 kB / 0.9973 GB, free: 5.109 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.5e-07/1.819, allocations: 0 / 0.9973 GB, free: 5.109 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000968/1.82, allocations: 103.7 kB / 0.9974 GB, free: 5.008 MB / 0.7481 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 (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.003597/1.824, allocations: 1.399 MB / 0.9988 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001983/1.826, allocations: 451.7 kB / 0.9992 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.826, allocations: 4.75 kB / 0.9992 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008338/1.827, allocations: 204.2 kB / 0.9994 GB, free: 2.91 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000908/1.828, allocations: 82.83 kB / 0.9995 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/1.841, allocations: 4.486 MB / 1.004 GB, free: 14.22 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001631/1.843, allocations: 0.8357 MB / 1.005 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006577/1.844, allocations: 59.44 kB / 1.005 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006741/1.844, allocations: 159.4 kB / 1.005 GB, free: 13.15 MB / 0.7637 GB Notification: Performance of SimCode: time 3.436e-06/1.845, allocations: 0 / 1.005 GB, free: 13.15 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05189/1.896, allocations: 8.578 MB / 1.013 GB, free: 4.793 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005414/1.897, allocations: 197.9 kB / 1.013 GB, free: 4.555 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.526/5.423, allocations: 9.141 kB / 1.013 GB, free: 4.551 MB / 0.7637 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat does not exist to compare? outputFormat=mat