Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadModel(Buildings): time 4.217/4.217, allocations: 433.4 MB / 440.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.503e-05/1.513e-05, allocations: 4 kB / 0.5325 GB, free: 1.867 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4979/0.4979, allocations: 98.71 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.6995, allocations: 131.4 MB / 0.7572 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.6999, allocations: 91.88 kB / 0.7573 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03286/0.7327, allocations: 8.651 MB / 0.7658 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.084e-06/0.7328, allocations: 0 / 0.7658 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.914e-05/0.7328, allocations: 15.94 kB / 0.7658 GB, free: 3.352 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001571/0.7344, allocations: 0.7303 MB / 0.7665 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.7345, allocations: 16.03 kB / 0.7665 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.7347, allocations: 59.3 kB / 0.7666 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008279/0.7355, allocations: 428.7 kB / 0.767 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.7356, allocations: 16 kB / 0.767 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.7357, allocations: 31.94 kB / 0.767 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008658/0.7365, allocations: 318.5 kB / 0.7673 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.7376, allocations: 453 kB / 0.7678 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.7376, allocations: 0 / 0.7678 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.7377, allocations: 11.94 kB / 0.7678 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.7377, allocations: 12 kB / 0.7678 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003241/0.741, allocations: 1.79 MB / 0.7695 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007842/0.7418, allocations: 275.2 kB / 0.7698 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.7421, allocations: 120.8 kB / 0.7699 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.7421, allocations: 4 kB / 0.7699 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004357/0.7426, allocations: 181.3 kB / 0.7701 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 4.197e-06/0.7426, allocations: 0 / 0.7701 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0007618/0.7434, allocations: 271 kB / 0.7703 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/0.7435, allocations: 110.8 kB / 0.7704 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.744, allocations: 297.4 kB / 0.7707 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.827e-05/0.7441, allocations: 37.64 kB / 0.7708 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.7443, allocations: 248 kB / 0.771 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.7445, allocations: 94.81 kB / 0.7711 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-05/0.7445, allocations: 0 / 0.7711 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001979/0.7447, allocations: 346.8 kB / 0.7714 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.745, allocations: 113.1 kB / 0.7715 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/0.7455, allocations: 229.7 kB / 0.7717 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.7458, allocations: 121.6 kB / 0.7719 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.536e-06/0.7458, allocations: 0 / 0.7719 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009806/0.7468, allocations: 389.8 kB / 0.7722 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006605/0.7475, allocations: 1.17 MB / 0.7734 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.751e-06/0.7475, allocations: 0 / 0.7734 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.7475, allocations: 11.98 kB / 0.7734 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/0.748, allocations: 79.89 kB / 0.7735 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.748, allocations: 11.94 kB / 0.7735 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.7486, allocations: 67.69 kB / 0.7735 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.7487, allocations: 16 kB / 0.7736 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.7487, allocations: 7.938 kB / 0.7736 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008248/0.7495, allocations: 315.3 kB / 0.7739 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.071e-06/0.7495, allocations: 8.312 kB / 0.7739 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.7496, allocations: 12 kB / 0.7739 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.75, allocations: 71.89 kB / 0.774 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.75, allocations: 7.938 kB / 0.774 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000472/0.7505, allocations: 55.8 kB / 0.774 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.396e-05/0.7505, allocations: 20 kB / 0.774 GB, free: 10.49 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,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,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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.0002067/0.7508, allocations: 138.1 kB / 0.7742 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.7509, allocations: 35.53 kB / 0.7742 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008391/0.7517, allocations: 309.7 kB / 0.7745 GB, free: 10 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.175e-06/0.7517, allocations: 8 kB / 0.7745 GB, free: 9.992 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.7518, allocations: 0 / 0.7745 GB, free: 9.992 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.902e-06/0.7518, allocations: 0 / 0.7745 GB, free: 9.992 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.7535, allocations: 0.831 MB / 0.7753 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.975e-06/0.7536, allocations: 0 / 0.7753 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.754, allocations: 63.92 kB / 0.7754 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.942e-06/0.754, allocations: 0 / 0.7754 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.754, allocations: 8 kB / 0.7754 GB, free: 9.043 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.209e-06/0.7541, allocations: 0 / 0.7754 GB, free: 9.043 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.762e-06/0.7541, allocations: 3.938 kB / 0.7754 GB, free: 9.039 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.7553, allocations: 0.5409 MB / 0.7759 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002507/0.7556, allocations: 144.6 kB / 0.7761 GB, free: 8.312 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/0.7557, allocations: 0 / 0.7761 GB, free: 8.312 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.7562, allocations: 52.02 kB / 0.7761 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.7563, allocations: 55.72 kB / 0.7762 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.7564, allocations: 8 kB / 0.7762 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003272/0.7567, allocations: 212.6 kB / 0.7764 GB, free: 7.988 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.43e-07/0.7568, allocations: 0 / 0.7764 GB, free: 7.988 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008809/0.7576, allocations: 143.5 kB / 0.7765 GB, free: 7.848 MB / 0.6511 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.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,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: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * 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 (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.0002369/0.7579, allocations: 125.4 kB / 0.7766 GB, free: 7.719 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00131/0.7592, allocations: 0.5864 MB / 0.7772 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.588e-06/0.7593, allocations: 0 / 0.7772 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003596/0.7596, allocations: 147.7 kB / 0.7773 GB, free: 6.961 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.7602, allocations: 78.55 kB / 0.7774 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.7617, allocations: 0.517 MB / 0.7779 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006158/0.7623, allocations: 0.8399 MB / 0.7787 GB, free: 5.473 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0005318/0.7629, allocations: 77.23 kB / 0.7788 GB, free: 5.395 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.7631, allocations: 35.42 kB / 0.7788 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of SimCode: time 1.847e-06/0.7631, allocations: 0 / 0.7788 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of Templates: time 0.01485/0.7779, allocations: 5.067 MB / 0.7838 GB, free: 344 kB / 0.6511 GB