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.0009692/0.0009691, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008644/0.008645, allocations: 171.8 kB / 16.27 MB, free: 6.371 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.682/1.682, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.976/2.976, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003986/0.0003986, allocations: 20.34 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4342/0.4347, allocations: 162.2 MB / 1.074 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001008/0.4357, allocations: 409.3 kB / 1.075 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.4374, allocations: 1.038 MB / 1.076 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.923e-05/0.4374, allocations: 0 / 1.076 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.591e-05/0.4375, allocations: 3.938 kB / 1.076 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.607e-05/0.4376, allocations: 3.984 kB / 1.076 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.4379, allocations: 39.91 kB / 1.076 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.994e-05/0.4379, allocations: 35.92 kB / 1.076 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.53e-05/0.438, allocations: 7.984 kB / 1.076 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.971e-05/0.4381, allocations: 19.88 kB / 1.076 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.2e-05/0.4382, allocations: 27.84 kB / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.4382, allocations: 0 / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.421e-05/0.4383, allocations: 15.98 kB / 1.076 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.4383, allocations: 7.984 kB / 1.076 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.023e-05/0.4384, allocations: 41.58 kB / 1.076 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.4385, allocations: 51.84 kB / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4386, allocations: 0 / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.716e-06/0.4386, allocations: 0 / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.4386, allocations: 0 / 1.076 GB, free: 5.871 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.0005826/0.4392, allocations: 359.7 kB / 1.076 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.4392, allocations: 12.03 kB / 1.076 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.4393, allocations: 0.9375 kB / 1.076 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.4394, allocations: 172.2 kB / 1.076 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.4394, allocations: 384 / 1.076 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.4395, allocations: 4.375 kB / 1.076 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.4397, allocations: 74.16 kB / 1.076 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.4397, allocations: 192 / 1.076 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.4397, allocations: 3.938 kB / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.4398, allocations: 0 / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.44, allocations: 43.97 kB / 1.076 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.4405, allocations: 281 kB / 1.077 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.4406, allocations: 62.42 kB / 1.077 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.4408, allocations: 36.88 kB / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.4408, allocations: 0 / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002145/0.441, allocations: 75.36 kB / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.441, allocations: 0 / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.000442/0.4415, allocations: 129.5 kB / 1.077 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.4415, allocations: 51.41 kB / 1.077 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.076e-05/0.4416, allocations: 105.8 kB / 1.077 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.4417, allocations: 33.7 kB / 1.077 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.264e-05/0.4417, allocations: 84.14 kB / 1.077 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.4418, allocations: 15.8 kB / 1.077 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.4418, allocations: 13.72 kB / 1.077 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4419, allocations: 314.8 kB / 1.078 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.442, allocations: 27.97 kB / 1.078 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.4422, allocations: 63.39 kB / 1.078 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.4424, allocations: 87.28 kB / 1.078 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4424, allocations: 0 / 1.078 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002924/0.4427, allocations: 109.6 kB / 1.078 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4428, allocations: 4 kB / 1.078 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4428, allocations: 4 kB / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.4428, allocations: 0 / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.4429, allocations: 27.86 kB / 1.078 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.4429, allocations: 4 kB / 1.078 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.157e-05/0.443, allocations: 15.91 kB / 1.078 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.4431, allocations: 7.984 kB / 1.078 GB, free: 3.441 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 9.987e-05/0.4432, allocations: 117.8 kB / 1.078 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.4432, allocations: 0 / 1.078 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002999/0.4435, allocations: 109.5 kB / 1.078 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.4435, allocations: 0 / 1.078 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4435, allocations: 320 / 1.078 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.4435, allocations: 0 / 1.078 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.444, allocations: 354.4 kB / 1.078 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.444, allocations: 0 / 1.078 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.524e-05/0.4441, allocations: 15.92 kB / 1.078 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4441, allocations: 4 kB / 1.078 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.4441, allocations: 0 / 1.078 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4441, allocations: 0 / 1.078 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4441, allocations: 3.938 kB / 1.078 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.4444, allocations: 191.5 kB / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.4445, allocations: 81.09 kB / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.4445, allocations: 8 kB / 1.079 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.4446, allocations: 4 kB / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.4446, allocations: 11.98 kB / 1.079 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.4446, allocations: 3.938 kB / 1.079 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.73e-05/0.4447, allocations: 91.72 kB / 1.079 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4447, allocations: 4 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002485/0.445, allocations: 11.91 kB / 1.079 GB, free: 2.34 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.0001711/0.4451, allocations: 99.19 kB / 1.079 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002663/0.4454, allocations: 71.95 kB / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4454, allocations: 0 / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.4456, allocations: 39.91 kB / 1.079 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.4458, allocations: 9.797 kB / 1.079 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003548/0.4462, allocations: 142.7 kB / 1.079 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.4465, allocations: 0.6809 MB / 1.08 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.163e-05/0.4465, allocations: 0 / 1.08 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.595e-05/0.4466, allocations: 15.42 kB / 1.08 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4466, allocations: 4 kB / 1.08 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of Templates: time 0.003339/0.4499, allocations: 0.654 MB / 1.081 GB, free: 0.5703 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)