Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_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.001028/0.001029, allocations: 109.4 kB / 15.69 MB, free: 128 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.001625/0.001625, allocations: 186.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.697/1.697, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 67.31 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1957, allocations: 114.6 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003986/0.1997, allocations: 2.933 MB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001848/0.2016, allocations: 1.158 MB / 0.7876 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002206/0.2018, allocations: 11.94 kB / 0.7876 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.2021, allocations: 79.14 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001704/0.2023, allocations: 79.25 kB / 0.7878 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.203, allocations: 338.2 kB / 0.7881 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006925/0.2037, allocations: 0.7107 MB / 0.7888 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005824/0.2043, allocations: 496.5 kB / 0.7893 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.2046, allocations: 243.1 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.2048, allocations: 250.8 kB / 0.7897 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.055e-05/0.2049, allocations: 71.98 kB / 0.7898 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.205, allocations: 83.92 kB / 0.7899 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.2052, allocations: 135.6 kB / 0.79 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.2054, allocations: 282.5 kB / 0.7903 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.206, allocations: 0.7358 MB / 0.791 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.206, allocations: 0 / 0.791 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.102e-06/0.206, allocations: 0 / 0.791 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.206, allocations: 0 / 0.791 GB, free: 5.633 MB / 0.6075 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.001542/0.2076, allocations: 0.882 MB / 0.7919 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2076, allocations: 12.03 kB / 0.7919 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.977e-05/0.2077, allocations: 82.7 kB / 0.792 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2078, allocations: 64.19 kB / 0.792 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006371/0.2085, allocations: 448.5 kB / 0.7925 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.2085, allocations: 41.38 kB / 0.7925 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/0.2086, allocations: 48.38 kB / 0.7925 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009225/0.2095, allocations: 0.5353 MB / 0.7931 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2095, allocations: 0 / 0.7931 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.2096, allocations: 24 kB / 0.7931 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.2096, allocations: 12 kB / 0.7931 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009132/0.2105, allocations: 399.6 kB / 0.7935 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.2126, allocations: 1.829 MB / 0.7953 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008759/0.2135, allocations: 345.8 kB / 0.7956 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003776/0.2139, allocations: 172.7 kB / 0.7958 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.2139, allocations: 12 kB / 0.7958 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005084/0.2144, allocations: 209.5 kB / 0.796 GB, free: 324 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 2.064e-06/0.2144, allocations: 0 / 0.796 GB, free: 324 kB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001253/0.2157, allocations: 474.8 kB / 0.7964 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.2158, allocations: 59.41 kB / 0.7965 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.2162, allocations: 409.3 kB / 0.7969 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.2163, allocations: 37.7 kB / 0.7969 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.2164, allocations: 252.2 kB / 0.7971 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.679e-05/0.2165, allocations: 98.73 kB / 0.7972 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2167, allocations: 110.1 kB / 0.7973 GB, free: 14.87 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2168, allocations: 354.8 kB / 0.7977 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.2172, allocations: 149 kB / 0.7978 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004503/0.2177, allocations: 265.9 kB / 0.7981 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.2185, allocations: 395.4 kB / 0.7985 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2185, allocations: 0 / 0.7985 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001023/0.2195, allocations: 0.5183 MB / 0.799 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/0.2196, allocations: 37.69 kB / 0.799 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2196, allocations: 8.344 kB / 0.799 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2196, allocations: 8 kB / 0.799 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.2199, allocations: 75.83 kB / 0.7991 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.22, allocations: 11.92 kB / 0.7991 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.2203, allocations: 75.39 kB / 0.7992 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.2204, allocations: 23.98 kB / 0.7992 GB, free: 12.85 MB / 0.6231 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,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 (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.0002348/0.2206, allocations: 210.2 kB / 0.7994 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.2207, allocations: 43.53 kB / 0.7994 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008841/0.2216, allocations: 386.1 kB / 0.7998 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2216, allocations: 8 kB / 0.7998 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.2216, allocations: 3.984 kB / 0.7998 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2216, allocations: 0 / 0.7998 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/0.2231, allocations: 0.9456 MB / 0.8007 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.2231, allocations: 4.031 kB / 0.8007 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.2234, allocations: 51.89 kB / 0.8008 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.2234, allocations: 4 kB / 0.8008 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.2234, allocations: 4 kB / 0.8008 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2234, allocations: 4 kB / 0.8008 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2235, allocations: 0 / 0.8008 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.2247, allocations: 0.6332 MB / 0.8014 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.2248, allocations: 144.6 kB / 0.8016 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.2249, allocations: 8 kB / 0.8016 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.2252, allocations: 40.02 kB / 0.8016 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.2253, allocations: 51.81 kB / 0.8017 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.2253, allocations: 12 kB / 0.8017 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002616/0.2256, allocations: 267.2 kB / 0.8019 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2256, allocations: 0 / 0.8019 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004292/0.226, allocations: 99.69 kB / 0.802 GB, free: 9.848 MB / 0.6231 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.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: 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.0016/0.2276, allocations: 1.191 MB / 0.8032 GB, free: 8.629 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001007/0.2287, allocations: 423.6 kB / 0.8036 GB, free: 8.203 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.2287, allocations: 4.125 kB / 0.8036 GB, free: 8.199 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.2291, allocations: 183.8 kB / 0.8038 GB, free: 8.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.2297, allocations: 100.1 kB / 0.8039 GB, free: 7.934 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005824/0.2355, allocations: 3.922 MB / 0.8077 GB, free: 3.84 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.2359, allocations: 0.8235 MB / 0.8085 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002151/0.2361, allocations: 55.45 kB / 0.8085 GB, free: 2.934 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002342/0.2364, allocations: 163.3 kB / 0.8087 GB, free: 2.773 MB / 0.6231 GB Notification: Performance of SimCode: time 7.31e-07/0.2364, allocations: 3.938 kB / 0.8087 GB, free: 2.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.2643, allocations: 9.039 MB / 0.8175 GB, free: 9.883 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.51, allocations: 14.75 kB / 0.8175 GB, free: 9.871 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.csv --start-time 0 --stop-time 10800 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)