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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 106.9 kB / 16.35 MB, free: 5.879 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.001322/0.001322, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.819/1.819, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 66.25 kB / 0.6729 GB, free: 5.812 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2642, allocations: 114.6 MB / 0.7848 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002318/0.2666, allocations: 0.8035 MB / 0.7856 GB, free: 2.324 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001819/0.2684, allocations: 1.207 MB / 0.7868 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.449e-05/0.2685, allocations: 4 kB / 0.7868 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.535e-05/0.2685, allocations: 7.875 kB / 0.7868 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.354e-05/0.2686, allocations: 7.875 kB / 0.7868 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006592/0.2693, allocations: 159 kB / 0.7869 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002215/0.2695, allocations: 163.7 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.2697, allocations: 20.2 kB / 0.7871 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.2698, allocations: 71.78 kB / 0.7872 GB, free: 0.6797 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.2699, allocations: 63.78 kB / 0.7872 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.27, allocations: 12 kB / 0.7872 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.082e-05/0.2701, allocations: 27.98 kB / 0.7873 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.663e-05/0.2701, allocations: 23.91 kB / 0.7873 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.2702, allocations: 55.78 kB / 0.7873 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.2704, allocations: 143.5 kB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2704, allocations: 0 / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2704, allocations: 0 / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2704, allocations: 0 / 0.7875 GB, free: 368 kB / 0.6544 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.3903/0.6608, allocations: 445 kB / 0.7879 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.6608, allocations: 10.66 kB / 0.7879 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.533e-05/0.6609, allocations: 11.59 kB / 0.7879 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.847e-05/0.661, allocations: 183.8 kB / 0.7881 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.661, allocations: 9.219 kB / 0.7881 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.6611, allocations: 14.44 kB / 0.7881 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.6614, allocations: 91.61 kB / 0.7882 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6614, allocations: 3.969 kB / 0.7882 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.6614, allocations: 10.53 kB / 0.7882 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.6614, allocations: 0 / 0.7882 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.6618, allocations: 91.25 kB / 0.7883 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005105/0.6623, allocations: 382.6 kB / 0.7887 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.6625, allocations: 95.91 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.6627, allocations: 58.5 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.6627, allocations: 2.625 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.6631, allocations: 119.9 kB / 0.7889 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.6631, allocations: 0 / 0.7889 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0006034/0.6637, allocations: 209 kB / 0.7891 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.477e-05/0.6637, allocations: 54.12 kB / 0.7892 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.79e-05/0.6638, allocations: 125.9 kB / 0.7893 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.6638, allocations: 34.83 kB / 0.7893 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.335e-05/0.6639, allocations: 99.23 kB / 0.7894 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.6639, allocations: 33.42 kB / 0.7895 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.664, allocations: 50.52 kB / 0.7895 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.53e-05/0.664, allocations: 323.9 kB / 0.7898 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.6643, allocations: 78.47 kB / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.6645, allocations: 120.5 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.6648, allocations: 186 kB / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6649, allocations: 1.031 kB / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005587/0.6654, allocations: 259.6 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.6655, allocations: 38.83 kB / 0.7905 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.6655, allocations: 4.031 kB / 0.7905 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.6655, allocations: 2.812 kB / 0.7905 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.6656, allocations: 23.86 kB / 0.7905 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.6656, allocations: 1.594 kB / 0.7905 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.6659, allocations: 47.36 kB / 0.7906 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.6659, allocations: 10.7 kB / 0.7906 GB, free: 47.29 MB / 0.6544 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 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.928e-05/0.666, allocations: 133.7 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.666, allocations: 6.531 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004084/0.6664, allocations: 177.8 kB / 0.7909 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.6664, allocations: 2.625 kB / 0.7909 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6665, allocations: 2.5 kB / 0.7909 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.6665, allocations: 3.828 kB / 0.7909 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005259/0.667, allocations: 449.6 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.667, allocations: 0 / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.445e-05/0.6671, allocations: 17.5 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.6671, allocations: 0 / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.6671, allocations: 3.312 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6671, allocations: 4.328 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.6671, allocations: 3.938 kB / 0.7913 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003701/0.6675, allocations: 259.8 kB / 0.7916 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.358e-05/0.6676, allocations: 86.88 kB / 0.7917 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.6676, allocations: 5.25 kB / 0.7917 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.6677, allocations: 17.94 kB / 0.7917 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.118e-05/0.6678, allocations: 20.84 kB / 0.7917 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.6678, allocations: 4 kB / 0.7917 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.207e-05/0.6678, allocations: 102.5 kB / 0.7918 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6679, allocations: 0 / 0.7918 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002702/0.6681, allocations: 39.03 kB / 0.7919 GB, free: 46.51 MB / 0.6544 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 (zeroCrossing.y,$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 (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.0001471/0.6683, allocations: 106.7 kB / 0.792 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004865/0.6688, allocations: 235.3 kB / 0.7922 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.6688, allocations: 2.625 kB / 0.7922 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.669, allocations: 68.48 kB / 0.7922 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.6693, allocations: 28.42 kB / 0.7923 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003541/0.6697, allocations: 193.8 kB / 0.7925 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.6698, allocations: 0.6965 MB / 0.7931 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.768e-05/0.6698, allocations: 14.16 kB / 0.7932 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.6699, allocations: 12.69 kB / 0.7932 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.6699, allocations: 0 / 0.7932 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of Templates: time 0.004045/0.6739, allocations: 1.917 MB / 0.795 GB, free: 45.46 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)