Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.843/1.843, allocations: 292.6 MB / 307.5 MB, free: 5.066 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 188.2 kB / 377.1 MB, free: 1.426 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.4 MB / 0.6367 GB, free: 8.621 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009684/0.0009683, allocations: 88.91 kB / 0.751 GB, free: 62.9 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.000349, allocations: 12 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2922, allocations: 116.3 MB / 0.9884 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7164/1.009, allocations: 139.6 MB / 1.125 GB, free: 35.21 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/1.009, allocations: 77.08 kB / 1.125 GB, free: 35.15 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.007014/1.016, allocations: 2.483 MB / 1.127 GB, free: 33.37 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.897e-06/1.016, allocations: 4 kB / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.274e-06/1.016, allocations: 0 / 1.127 GB, free: 33.36 MB / 0.7292 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.0005777/1.017, allocations: 440 kB / 1.128 GB, free: 32.9 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/1.017, allocations: 8.031 kB / 1.128 GB, free: 32.89 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/1.017, allocations: 17.91 kB / 1.128 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/1.017, allocations: 171.5 kB / 1.128 GB, free: 32.67 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/1.017, allocations: 8.594 kB / 1.128 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/1.017, allocations: 12 kB / 1.128 GB, free: 32.65 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/1.017, allocations: 120.7 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/1.017, allocations: 0 / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/1.017, allocations: 3.984 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/1.017, allocations: 0 / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/1.018, allocations: 116.5 kB / 1.128 GB, free: 32.46 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/1.018, allocations: 385.4 kB / 1.128 GB, free: 32.1 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/1.019, allocations: 105.1 kB / 1.129 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/1.019, allocations: 192 / 1.129 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/1.019, allocations: 131.5 kB / 1.129 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=12): time 2.284e-06/1.019, allocations: 4.844 kB / 1.129 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of matching and sorting (n=12): time 0.0006553/1.02, allocations: 241 kB / 1.129 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/1.02, allocations: 55.41 kB / 1.129 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.609e-05/1.02, allocations: 117.3 kB / 1.129 GB, free: 31.5 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/1.02, allocations: 37.64 kB / 1.129 GB, free: 31.46 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/1.02, allocations: 104 kB / 1.129 GB, free: 31.35 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/1.02, allocations: 27.17 kB / 1.129 GB, free: 31.33 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.417e-05/1.02, allocations: 0.8438 kB / 1.129 GB, free: 31.33 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.379e-05/1.02, allocations: 330.3 kB / 1.13 GB, free: 31 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/1.02, allocations: 89.2 kB / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/1.02, allocations: 117.9 kB / 1.13 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/1.021, allocations: 112.1 kB / 1.13 GB, free: 30.71 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.021, allocations: 0 / 1.13 GB, free: 30.71 MB / 0.7292 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005642/1.021, allocations: 290.5 kB / 1.13 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/1.021, allocations: 41.27 kB / 1.13 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/1.021, allocations: 0 / 1.13 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/1.021, allocations: 4.562 kB / 1.13 GB, free: 30.4 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/1.021, allocations: 23.47 kB / 1.13 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/1.021, allocations: 11.36 kB / 1.13 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/1.022, allocations: 62.62 kB / 1.13 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/1.022, allocations: 15.28 kB / 1.13 GB, free: 30.31 MB / 0.7292 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 9.617e-05/1.022, allocations: 119.4 kB / 1.13 GB, free: 30.19 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/1.022, allocations: 8.75 kB / 1.13 GB, free: 30.18 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004417/1.022, allocations: 203.4 kB / 1.131 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/1.022, allocations: 0 / 1.131 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/1.022, allocations: 4 kB / 1.131 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.022, allocations: 0.5 kB / 1.131 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005674/1.023, allocations: 470.2 kB / 1.131 GB, free: 29.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.023, allocations: 0 / 1.131 GB, free: 29.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/1.023, allocations: 27.3 kB / 1.131 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/1.023, allocations: 4 kB / 1.131 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/1.023, allocations: 4.75 kB / 1.131 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.023, allocations: 1.047 kB / 1.131 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.023, allocations: 3.953 kB / 1.131 GB, free: 29.51 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/1.024, allocations: 279.5 kB / 1.131 GB, free: 29.25 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.553e-05/1.024, allocations: 81.02 kB / 1.131 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/1.024, allocations: 4 kB / 1.131 GB, free: 29.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/1.024, allocations: 27.86 kB / 1.131 GB, free: 29.13 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/1.024, allocations: 18.03 kB / 1.131 GB, free: 29.12 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/1.024, allocations: 8.781 kB / 1.131 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.326e-05/1.024, allocations: 101.7 kB / 1.132 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.024, allocations: 0 / 1.132 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002736/1.024, allocations: 32 kB / 1.132 GB, free: 28.99 MB / 0.7292 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.0001703/1.024, allocations: 115.1 kB / 1.132 GB, free: 28.87 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004952/1.025, allocations: 258.4 kB / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/1.025, allocations: 0 / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001838/1.025, allocations: 77.84 kB / 1.132 GB, free: 28.57 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/1.025, allocations: 21.09 kB / 1.132 GB, free: 28.56 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/1.026, allocations: 219.9 kB / 1.132 GB, free: 28.34 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/1.026, allocations: 0.7028 MB / 1.133 GB, free: 27.62 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.809e-05/1.026, allocations: 8.031 kB / 1.133 GB, free: 27.62 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.793e-05/1.026, allocations: 15.44 kB / 1.133 GB, free: 27.61 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/1.026, allocations: 4 kB / 1.133 GB, free: 27.6 MB / 0.7292 GB Notification: Performance of Templates: time 0.003865/1.03, allocations: 1.631 MB / 1.135 GB, free: 26.71 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)