Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.303/1.303, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 178.5 kB / 327.6 MB, free: 2.16 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.4 MB / 0.5785 GB, free: 20.5 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008357/0.0008357, allocations: 84.94 kB / 0.6831 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 16.62 kB / 0.7974 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2002, allocations: 106.3 MB / 0.9012 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.3521, allocations: 132.1 MB / 1.03 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.3523, allocations: 71.95 kB / 1.03 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003638/0.356, allocations: 1.361 MB / 1.032 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of FrontEnd: time 5.55e-06/0.356, allocations: 7.938 kB / 1.032 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.356, allocations: 0 / 1.032 GB, free: 10.27 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006423/0.3567, allocations: 411.1 kB / 1.032 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3567, allocations: 12.03 kB / 1.032 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.801e-05/0.3568, allocations: 12.78 kB / 1.032 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.357, allocations: 176.2 kB / 1.032 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.357, allocations: 8.359 kB / 1.032 GB, free: 9.578 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.357, allocations: 8.375 kB / 1.032 GB, free: 9.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3573, allocations: 114.2 kB / 1.032 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.3573, allocations: 192 / 1.032 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.3574, allocations: 7.938 kB / 1.032 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3574, allocations: 0 / 1.032 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.3577, allocations: 119.8 kB / 1.033 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006822/0.3584, allocations: 356.7 kB / 1.033 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.3589, allocations: 162.5 kB / 1.033 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.3591, allocations: 68.81 kB / 1.033 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.3591, allocations: 0 / 1.033 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003186/0.3594, allocations: 127.2 kB / 1.033 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.074e-06/0.3595, allocations: 0 / 1.033 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0006178/0.3601, allocations: 229.3 kB / 1.033 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.3602, allocations: 59.41 kB / 1.033 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.3603, allocations: 129.1 kB / 1.034 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.3603, allocations: 29.7 kB / 1.034 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.292e-05/0.3604, allocations: 96.08 kB / 1.034 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.3604, allocations: 27.61 kB / 1.034 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/0.3604, allocations: 0 / 1.034 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3606, allocations: 326.8 kB / 1.034 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3608, allocations: 63.95 kB / 1.034 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.361, allocations: 95.39 kB / 1.034 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003324/0.3613, allocations: 139.3 kB / 1.034 GB, free: 7.312 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3613, allocations: 4 kB / 1.034 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000423/0.3618, allocations: 201.7 kB / 1.035 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3618, allocations: 4 kB / 1.035 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3618, allocations: 4.094 kB / 1.035 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3618, allocations: 4 kB / 1.035 GB, free: 7.094 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3619, allocations: 23.98 kB / 1.035 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.362, allocations: 0 / 1.035 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.3621, allocations: 39.91 kB / 1.035 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.309e-05/0.3622, allocations: 4 kB / 1.035 GB, free: 7.027 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001046/0.3623, allocations: 127.5 kB / 1.035 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.974e-05/0.3623, allocations: 11.89 kB / 1.035 GB, free: 6.883 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004383/0.3627, allocations: 181.9 kB / 1.035 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3628, allocations: 0 / 1.035 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3628, allocations: 0 / 1.035 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3628, allocations: 3.984 kB / 1.035 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006195/0.3634, allocations: 462.2 kB / 1.035 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.3634, allocations: 4 kB / 1.035 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.3635, allocations: 23.92 kB / 1.035 GB, free: 6.16 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.3635, allocations: 7.922 kB / 1.035 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.3636, allocations: 0 / 1.035 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3636, allocations: 4 kB / 1.035 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3636, allocations: 7.938 kB / 1.035 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.364, allocations: 263.4 kB / 1.036 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.364, allocations: 89 kB / 1.036 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3641, allocations: 4 kB / 1.036 GB, free: 5.758 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.3642, allocations: 27.95 kB / 1.036 GB, free: 5.73 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.3643, allocations: 23.91 kB / 1.036 GB, free: 5.707 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.3643, allocations: 0 / 1.036 GB, free: 5.707 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.22e-05/0.3644, allocations: 99.27 kB / 1.036 GB, free: 5.609 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3644, allocations: 0 / 1.036 GB, free: 5.609 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002352/0.3646, allocations: 23.91 kB / 1.036 GB, free: 5.586 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * 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.0001304/0.3648, allocations: 115.3 kB / 1.036 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004058/0.3652, allocations: 151.8 kB / 1.036 GB, free: 5.32 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3652, allocations: 0 / 1.036 GB, free: 5.32 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.3654, allocations: 76.14 kB / 1.036 GB, free: 5.246 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.3657, allocations: 12 kB / 1.036 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004619/0.3662, allocations: 224.3 kB / 1.036 GB, free: 4.977 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.3664, allocations: 0.6926 MB / 1.037 GB, free: 4.258 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.072e-05/0.3665, allocations: 12.55 kB / 1.037 GB, free: 4.246 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.3666, allocations: 11.44 kB / 1.037 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of SimCode: time 2.1e-07/0.3666, allocations: 4 kB / 1.037 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of Templates: time 0.003252/0.3698, allocations: 1.098 MB / 1.038 GB, free: 3.145 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)