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.001406/0.001406, allocations: 101.4 kB / 15.69 MB, free: 140 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.001652/0.001652, allocations: 200.9 kB / 16.63 MB, free: 6.324 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.306/1.306, allocations: 205.1 MB / 222.5 MB, free: 4.348 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.619/1.619, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001378/0.001378, allocations: 68.59 kB / 0.6718 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2246, allocations: 114.5 MB / 0.7836 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004359/0.229, allocations: 2.949 MB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001967/0.231, allocations: 1.15 MB / 0.7876 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.2313, allocations: 11.94 kB / 0.7876 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002493/0.2315, allocations: 83.12 kB / 0.7877 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.2317, allocations: 83.19 kB / 0.7878 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007975/0.2325, allocations: 334.4 kB / 0.7881 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006852/0.2332, allocations: 0.7146 MB / 0.7888 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005844/0.2339, allocations: 496.6 kB / 0.7893 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.2341, allocations: 247.1 kB / 0.7895 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.2343, allocations: 250.8 kB / 0.7898 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.861e-05/0.2344, allocations: 68 kB / 0.7898 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.2346, allocations: 87.88 kB / 0.7899 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2347, allocations: 139.6 kB / 0.79 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.2349, allocations: 270.6 kB / 0.7903 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006775/0.2356, allocations: 0.7396 MB / 0.791 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2356, allocations: 0 / 0.791 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2356, allocations: 4 kB / 0.791 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.2356, allocations: 0 / 0.791 GB, free: 5.688 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.001538/0.2372, allocations: 0.8782 MB / 0.7919 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2372, allocations: 12.03 kB / 0.7919 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.422e-05/0.2373, allocations: 86.64 kB / 0.792 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.2374, allocations: 64.19 kB / 0.792 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006551/0.2381, allocations: 444.5 kB / 0.7925 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.2381, allocations: 41.38 kB / 0.7925 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.744e-05/0.2382, allocations: 48.38 kB / 0.7925 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/0.2391, allocations: 0.5353 MB / 0.7931 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2392, allocations: 0 / 0.7931 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.2392, allocations: 20 kB / 0.7931 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.2392, allocations: 12 kB / 0.7931 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008921/0.2401, allocations: 399.6 kB / 0.7935 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.2421, allocations: 1.837 MB / 0.7953 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008881/0.243, allocations: 346 kB / 0.7956 GB, free: 0.7695 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003805/0.2435, allocations: 164.7 kB / 0.7958 GB, free: 0.6055 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.065e-05/0.2435, allocations: 8 kB / 0.7958 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/0.244, allocations: 217.4 kB / 0.796 GB, free: 384 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 2.404e-06/0.244, allocations: 0 / 0.796 GB, free: 384 kB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001222/0.2453, allocations: 470.9 kB / 0.7964 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.2453, allocations: 59.41 kB / 0.7965 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.2458, allocations: 409.3 kB / 0.7969 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.2458, allocations: 41.7 kB / 0.7969 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.246, allocations: 252.1 kB / 0.7971 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.154e-05/0.2461, allocations: 98.73 kB / 0.7972 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.2462, allocations: 114.1 kB / 0.7974 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2463, allocations: 350.8 kB / 0.7977 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.2467, allocations: 149 kB / 0.7978 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.2472, allocations: 269.8 kB / 0.7981 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007415/0.2479, allocations: 395.4 kB / 0.7985 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.2479, allocations: 4 kB / 0.7985 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00102/0.249, allocations: 0.5144 MB / 0.799 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.249, allocations: 37.7 kB / 0.799 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.249, allocations: 8.344 kB / 0.799 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.2491, allocations: 8 kB / 0.799 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.2494, allocations: 71.89 kB / 0.7991 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.2494, allocations: 15.86 kB / 0.7991 GB, free: 13 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.2498, allocations: 71.41 kB / 0.7992 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.2498, allocations: 23.98 kB / 0.7992 GB, free: 12.91 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.0002197/0.25, allocations: 210.2 kB / 0.7994 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.2501, allocations: 43.52 kB / 0.7994 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008775/0.251, allocations: 386.2 kB / 0.7998 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.251, allocations: 8 kB / 0.7998 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.251, allocations: 0 / 0.7998 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.251, allocations: 0 / 0.7998 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.2525, allocations: 0.9456 MB / 0.8007 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2525, allocations: 4.031 kB / 0.8007 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.2528, allocations: 51.89 kB / 0.8008 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2528, allocations: 4 kB / 0.8008 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.2528, allocations: 4 kB / 0.8008 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2528, allocations: 4 kB / 0.8008 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2528, allocations: 0 / 0.8008 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.254, allocations: 0.637 MB / 0.8014 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2542, allocations: 148.6 kB / 0.8016 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.2542, allocations: 4 kB / 0.8016 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.2545, allocations: 40.02 kB / 0.8016 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.2547, allocations: 47.88 kB / 0.8017 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.2547, allocations: 8 kB / 0.8017 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002584/0.255, allocations: 275.2 kB / 0.8019 GB, free: 10 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.255, allocations: 0 / 0.8019 GB, free: 10 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004079/0.2554, allocations: 91.69 kB / 0.802 GB, free: 9.914 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.001625/0.257, allocations: 1.199 MB / 0.8032 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009057/0.2579, allocations: 427.7 kB / 0.8036 GB, free: 8.258 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2579, allocations: 4.062 kB / 0.8036 GB, free: 8.254 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004149/0.2584, allocations: 179.8 kB / 0.8038 GB, free: 8.078 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.2589, allocations: 94.25 kB / 0.8039 GB, free: 7.988 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.2643, allocations: 3.921 MB / 0.8077 GB, free: 3.898 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.2647, allocations: 0.8235 MB / 0.8085 GB, free: 3.051 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002019/0.2649, allocations: 55.44 kB / 0.8085 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/0.2652, allocations: 159.4 kB / 0.8087 GB, free: 2.836 MB / 0.6231 GB Notification: Performance of SimCode: time 2.7e-07/0.2652, allocations: 7.938 kB / 0.8087 GB, free: 2.828 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02706/0.2922, allocations: 9.045 MB / 0.8175 GB, free: 9.938 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.233, allocations: 13.92 kB / 0.8175 GB, free: 9.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)