Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001377/0.001377, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001982/0.001982, allocations: 196 kB / 16.14 MB, free: 6.656 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.536/1.536, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.234/3.234, allocations: 472.6 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 67.5 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4221, 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.002301/0.4244, allocations: 0.7269 MB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.426, allocations: 1.053 MB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.449e-05/0.4261, allocations: 4 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.239e-05/0.4261, allocations: 3.938 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.911e-05/0.4262, allocations: 7.938 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.4265, allocations: 31.95 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.668e-05/0.4266, allocations: 39.86 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.4267, allocations: 8 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.849e-05/0.4268, allocations: 23.91 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.222e-05/0.4269, allocations: 15.92 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.4269, allocations: 8 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.427, allocations: 11.98 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.427, allocations: 7.984 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.4271, allocations: 23.86 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.4272, allocations: 47.86 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.4272, allocations: 3.938 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4272, allocations: 0 / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.4273, allocations: 0 / 1.069 GB, free: 8.887 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.0005994/0.4279, allocations: 361.4 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4279, allocations: 12.03 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.428, allocations: 8.844 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.4281, allocations: 164.3 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.4281, allocations: 4.375 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.4282, allocations: 8.312 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.4284, allocations: 58.22 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4284, allocations: 192 / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.4284, allocations: 7.938 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.4284, allocations: 4 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.4286, allocations: 35.97 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005262/0.4291, allocations: 280.8 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.4293, allocations: 50.42 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.575e-05/0.4294, allocations: 28.94 kB / 1.07 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.4294, allocations: 3.938 kB / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.4297, allocations: 71.38 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.4297, allocations: 0 / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0003855/0.4301, allocations: 101.6 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.4301, allocations: 55.41 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/0.4302, allocations: 113.8 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.4303, allocations: 25.7 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/0.4303, allocations: 84.05 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.4304, allocations: 15.89 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.4304, allocations: 17.72 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4305, allocations: 318.8 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.4306, allocations: 27.98 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.4308, allocations: 43.41 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.431, allocations: 83.28 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.431, allocations: 256 / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002567/0.4313, allocations: 101.5 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4313, allocations: 4 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.4313, allocations: 4.469 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.4313, allocations: 8.125 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.4314, allocations: 19.92 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.4315, allocations: 4 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.594e-05/0.4316, allocations: 11.92 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.4316, allocations: 0 / 1.072 GB, free: 6.543 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 8.836e-05/0.4317, allocations: 121.7 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.4317, allocations: 4 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002938/0.432, allocations: 97.55 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.432, allocations: 0 / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.432, allocations: 0 / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.432, allocations: 0 / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.4324, allocations: 342.4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4324, allocations: 0 / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.109e-05/0.4325, allocations: 11.92 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4325, allocations: 8 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.4325, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4325, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.4326, allocations: 3.984 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.4328, allocations: 191.4 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.4329, allocations: 81.02 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.4329, allocations: 0 / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.433, allocations: 11.98 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.4331, allocations: 4.188 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.4331, allocations: 7.938 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.4331, allocations: 87.27 kB / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4332, allocations: 0 / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002486/0.4334, allocations: 12 kB / 1.072 GB, free: 5.469 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.0001994/0.4336, allocations: 103.2 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.4339, allocations: 59.95 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4339, allocations: 0 / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.434, allocations: 31.91 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.4343, allocations: 6.25 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.4347, allocations: 148 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.4351, allocations: 0.6809 MB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.277e-05/0.4351, allocations: 4 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.4351, allocations: 7.438 kB / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.4352, allocations: 0 / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of Templates: time 0.00334/0.4385, allocations: 0.674 MB / 1.074 GB, free: 3.711 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1)