Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002854/0.002854, allocations: 198.1 kB / 16.14 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.983/2.983, allocations: 472.6 MB / 0.7447 GB, free: 5.012 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 60.27 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4579/0.4602, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.003449/0.4637, allocations: 0.7152 MB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001831/0.4655, allocations: 1.057 MB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.206e-05/0.4656, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.91e-05/0.4657, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.4658, allocations: 7.938 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.4663, allocations: 35.91 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.4664, allocations: 35.92 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.4666, allocations: 11.98 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.4667, allocations: 19.92 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.199e-05/0.4668, allocations: 19.91 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.4669, allocations: 4 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.467, allocations: 15.98 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.308e-05/0.467, allocations: 7.938 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.44e-05/0.4671, allocations: 19.92 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.4673, allocations: 51.8 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4673, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.263e-06/0.4673, allocations: 4 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.59e-05/0.4674, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0008775/0.4682, allocations: 351.7 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.813e-05/0.4683, allocations: 12.03 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.004e-05/0.4684, allocations: 4.844 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.4686, allocations: 180.3 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.4686, allocations: 384 / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.4687, allocations: 8.312 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.469, allocations: 58.23 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.469, allocations: 192 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.469, allocations: 3.938 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.469, allocations: 3.938 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.4692, allocations: 47.89 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007422/0.47, allocations: 272.9 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.4702, allocations: 54.48 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.4703, allocations: 20.94 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.4704, allocations: 19.95 kB / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.4707, allocations: 67.33 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.343e-06/0.4707, allocations: 0 / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0004357/0.4711, allocations: 97.64 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/0.4712, allocations: 59.39 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.4713, allocations: 109.8 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.4713, allocations: 33.69 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.4714, allocations: 88.05 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.4714, allocations: 7.906 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.4715, allocations: 21.7 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4717, allocations: 314.8 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.4718, allocations: 19.98 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.4719, allocations: 55.34 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.4721, allocations: 87.27 kB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4722, allocations: 0 / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002681/0.4724, allocations: 97.5 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.4725, allocations: 4 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4725, allocations: 0 / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.4725, allocations: 4 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.4726, allocations: 12.11 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4727, allocations: 4 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.31e-05/0.4727, allocations: 15.92 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.4728, allocations: 0 / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001303/0.4729, allocations: 121.7 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.4729, allocations: 4 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.4732, allocations: 89.61 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.4733, allocations: 4 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4733, allocations: 3.938 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4733, allocations: 0 / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004884/0.4738, allocations: 350.7 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4738, allocations: 0 / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.4738, allocations: 8 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.4739, allocations: 3.984 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.4739, allocations: 11.94 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4739, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4739, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.4742, allocations: 179.4 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.4743, allocations: 85.02 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.4743, allocations: 0 / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.4744, allocations: 7.984 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.4744, allocations: 7.984 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.4745, allocations: 7.938 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.783e-05/0.4745, allocations: 83.28 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4745, allocations: 0 / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002509/0.4748, allocations: 16 kB / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001867/0.475, allocations: 99.23 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000252/0.4752, allocations: 63.89 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4752, allocations: 0 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.4754, allocations: 27.97 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.4757, allocations: 11.98 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003908/0.4761, allocations: 151.9 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.4764, allocations: 0.6809 MB / 1.073 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.671e-05/0.4764, allocations: 7.984 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.523e-05/0.4764, allocations: 7.438 kB / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.4764, allocations: 0 / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of Templates: time 0.003356/0.4798, allocations: 0.6621 MB / 1.074 GB, free: 3.719 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1)