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.001045/0.001045, 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.001105/0.001105, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.292/1.292, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.618/1.618, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.00136/0.00136, allocations: 72.84 kB / 0.6716 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2182, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004181/0.2224, allocations: 2.947 MB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002065/0.2245, allocations: 1.15 MB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/0.2248, allocations: 11.94 kB / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002686/0.2251, allocations: 75.2 kB / 0.7876 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.2253, allocations: 79.19 kB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007681/0.226, allocations: 343 kB / 0.788 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.2267, allocations: 0.7108 MB / 0.7886 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005664/0.2273, allocations: 0.4924 MB / 0.7891 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.2275, allocations: 239.1 kB / 0.7894 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.2278, allocations: 250.8 kB / 0.7896 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.199e-05/0.2279, allocations: 68 kB / 0.7897 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.228, allocations: 76 kB / 0.7897 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.2281, allocations: 143.6 kB / 0.7899 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.2283, allocations: 274.5 kB / 0.7901 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.2289, allocations: 0.7166 MB / 0.7908 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.2289, allocations: 0 / 0.7908 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2289, allocations: 0 / 0.7908 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.2289, allocations: 0 / 0.7908 GB, free: 5.812 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.001515/0.2305, allocations: 0.8898 MB / 0.7917 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2305, allocations: 8.031 kB / 0.7917 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.136e-05/0.2306, allocations: 86.7 kB / 0.7918 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.2307, allocations: 64.19 kB / 0.7919 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.2313, allocations: 432.6 kB / 0.7923 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.2313, allocations: 37.38 kB / 0.7923 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.2314, allocations: 52.38 kB / 0.7924 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008979/0.2323, allocations: 0.5353 MB / 0.7929 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2323, allocations: 0 / 0.7929 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.2324, allocations: 16 kB / 0.7929 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.2324, allocations: 12 kB / 0.7929 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009089/0.2333, allocations: 403.6 kB / 0.7933 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.2353, allocations: 1.848 MB / 0.7951 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/0.2362, allocations: 338.9 kB / 0.7954 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.2366, allocations: 175.5 kB / 0.7956 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.2366, allocations: 4 kB / 0.7956 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005641/0.2372, allocations: 217.4 kB / 0.7958 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 2.274e-06/0.2372, allocations: 0 / 0.7958 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.00119/0.2384, allocations: 466.8 kB / 0.7962 GB, free: 32 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.2385, allocations: 59.41 kB / 0.7963 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.2389, allocations: 409.3 kB / 0.7967 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.2389, allocations: 45.7 kB / 0.7967 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.2391, allocations: 252.2 kB / 0.797 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.464e-05/0.2392, allocations: 102.7 kB / 0.7971 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.2393, allocations: 106.1 kB / 0.7972 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.2395, allocations: 362.7 kB / 0.7975 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.2399, allocations: 153 kB / 0.7977 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004397/0.2403, allocations: 261.9 kB / 0.7979 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000753/0.2411, allocations: 399.4 kB / 0.7983 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.2411, allocations: 8 kB / 0.7983 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001014/0.2421, allocations: 0.5108 MB / 0.7988 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.2422, allocations: 33.7 kB / 0.7988 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2422, allocations: 4 kB / 0.7988 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2422, allocations: 4 kB / 0.7988 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.2425, allocations: 79.81 kB / 0.7989 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2425, allocations: 4 kB / 0.7989 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.2429, allocations: 79.52 kB / 0.799 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.2429, allocations: 20 kB / 0.799 GB, free: 13.03 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.0002116/0.2432, allocations: 218.2 kB / 0.7992 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.2432, allocations: 39.53 kB / 0.7993 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009036/0.2441, allocations: 382.2 kB / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2441, allocations: 4 kB / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2442, allocations: 0 / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.2442, allocations: 3.984 kB / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.2456, allocations: 0.9489 MB / 0.8006 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.2456, allocations: 3.984 kB / 0.8006 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.2459, allocations: 43.91 kB / 0.8006 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.2459, allocations: 4 kB / 0.8006 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.2459, allocations: 7.984 kB / 0.8006 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.2459, allocations: 4 kB / 0.8006 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2459, allocations: 4.031 kB / 0.8006 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.2472, allocations: 0.6396 MB / 0.8012 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.2473, allocations: 148.6 kB / 0.8014 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.2474, allocations: 4 kB / 0.8014 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.2477, allocations: 39.95 kB / 0.8014 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2478, allocations: 39.89 kB / 0.8015 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.2479, allocations: 15.98 kB / 0.8015 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002633/0.2481, allocations: 271.2 kB / 0.8017 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.843e-06/0.2481, allocations: 0 / 0.8017 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003915/0.2485, allocations: 99.62 kB / 0.8018 GB, free: 10.03 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.001599/0.2501, allocations: 1.199 MB / 0.803 GB, free: 8.801 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.2512, allocations: 450.9 kB / 0.8034 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2512, allocations: 0 / 0.8034 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.2516, allocations: 172.7 kB / 0.8036 GB, free: 8.18 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.2521, allocations: 108 kB / 0.8037 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/0.2575, allocations: 3.975 MB / 0.8076 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.258, allocations: 0.8313 MB / 0.8084 GB, free: 3.074 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002722/0.2583, allocations: 51.45 kB / 0.8084 GB, free: 3.02 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002419/0.2586, allocations: 163.4 kB / 0.8086 GB, free: 2.863 MB / 0.6231 GB Notification: Performance of SimCode: time 1.062e-06/0.2586, allocations: 0 / 0.8086 GB, free: 2.863 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.2864, allocations: 9.023 MB / 0.8174 GB, free: 9.98 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.889, allocations: 11.03 kB / 0.8174 GB, free: 9.973 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)