Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.595/1.595, allocations: 297.8 MB / 313.7 MB, free: 136 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009893/0.0009893, allocations: 179 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.2 MB / 0.6626 GB, free: 4.277 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007819/0.0007819, allocations: 94.97 kB / 0.7808 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003934, allocations: 18.8 kB / 0.9088 GB, free: 2.863 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6033/0.6037, allocations: 120.3 MB / 1.026 GB, free: 55.83 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1566/0.7604, allocations: 141.8 MB / 1.165 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.7607, allocations: 72.56 kB / 1.165 GB, free: 1.773 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006536/0.7672, allocations: 2.499 MB / 1.167 GB, free: 16 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7672, allocations: 0 / 1.167 GB, free: 16 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.7672, allocations: 4 kB / 1.167 GB, free: 15.99 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005356/0.7678, allocations: 443.7 kB / 1.168 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.7678, allocations: 12.03 kB / 1.168 GB, free: 15.51 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.328e-05/0.7679, allocations: 18.52 kB / 1.168 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.768, allocations: 175 kB / 1.168 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.7681, allocations: 5.312 kB / 1.168 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.7681, allocations: 13.75 kB / 1.168 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.7684, allocations: 110.4 kB / 1.168 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.7684, allocations: 192 / 1.168 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.7684, allocations: 9.297 kB / 1.168 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.7684, allocations: 2.094 kB / 1.168 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.7687, allocations: 106.4 kB / 1.168 GB, free: 15.1 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005721/0.7693, allocations: 394.6 kB / 1.169 GB, free: 14.72 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.7696, allocations: 108.4 kB / 1.169 GB, free: 14.62 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.7698, allocations: 64.92 kB / 1.169 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.7698, allocations: 4.797 kB / 1.169 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.7701, allocations: 126 kB / 1.169 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.7701, allocations: 0.625 kB / 1.169 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0006337/0.7708, allocations: 250 kB / 1.169 GB, free: 14.25 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.7708, allocations: 52.02 kB / 1.169 GB, free: 14.19 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.98e-05/0.7709, allocations: 126.7 kB / 1.169 GB, free: 14.06 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.771, allocations: 33.7 kB / 1.169 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.771, allocations: 102.7 kB / 1.169 GB, free: 13.92 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.7711, allocations: 26.23 kB / 1.169 GB, free: 13.9 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.7711, allocations: 7.938 kB / 1.169 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.7712, allocations: 331.2 kB / 1.17 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.7714, allocations: 88.22 kB / 1.17 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.7717, allocations: 118.3 kB / 1.17 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004185/0.7721, allocations: 211.5 kB / 1.17 GB, free: 13.18 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.7721, allocations: 0 / 1.17 GB, free: 13.18 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006046/0.7727, allocations: 294.5 kB / 1.17 GB, free: 12.91 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.7728, allocations: 31.67 kB / 1.17 GB, free: 12.88 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.7728, allocations: 4 kB / 1.17 GB, free: 12.87 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.7728, allocations: 3.75 kB / 1.17 GB, free: 12.87 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.7729, allocations: 29.62 kB / 1.17 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.773, allocations: 5.797 kB / 1.17 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.7732, allocations: 56.45 kB / 1.171 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.7732, allocations: 13.92 kB / 1.171 GB, free: 12.79 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001033/0.7733, allocations: 130.9 kB / 1.171 GB, free: 12.65 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.7734, allocations: 8.562 kB / 1.171 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004416/0.7738, allocations: 191.7 kB / 1.171 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.7738, allocations: 0.5625 kB / 1.171 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.7738, allocations: 3.938 kB / 1.171 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.7738, allocations: 0.6094 kB / 1.171 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006475/0.7745, allocations: 476.4 kB / 1.171 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7745, allocations: 0 / 1.171 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.7746, allocations: 33.56 kB / 1.171 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.7746, allocations: 2.156 kB / 1.171 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.7747, allocations: 2.375 kB / 1.171 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7747, allocations: 4 kB / 1.171 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/0.7747, allocations: 3.938 kB / 1.171 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004328/0.7751, allocations: 276.7 kB / 1.172 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.7752, allocations: 89.95 kB / 1.172 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.7752, allocations: 4.75 kB / 1.172 GB, free: 11.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.7753, allocations: 21.56 kB / 1.172 GB, free: 11.6 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.025e-05/0.7754, allocations: 16.66 kB / 1.172 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.7754, allocations: 5.266 kB / 1.172 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.977e-05/0.7755, allocations: 94.98 kB / 1.172 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7755, allocations: 4 kB / 1.172 GB, free: 11.49 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002594/0.7757, allocations: 41.48 kB / 1.172 GB, free: 11.45 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001646/0.7759, allocations: 118.6 kB / 1.172 GB, free: 11.33 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000533/0.7765, allocations: 254 kB / 1.172 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.7765, allocations: 0 / 1.172 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.7767, allocations: 84.52 kB / 1.172 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.777, allocations: 16.92 kB / 1.172 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003787/0.7773, allocations: 217.2 kB / 1.173 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.7776, allocations: 0.6981 MB / 1.173 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.565e-05/0.7777, allocations: 10.81 kB / 1.173 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.7777, allocations: 12.19 kB / 1.173 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of SimCode: time 2.7e-07/0.7777, allocations: 3.938 kB / 1.173 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of Templates: time 0.004128/0.7818, allocations: 1.663 MB / 1.175 GB, free: 9.16 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)