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.001459/0.001459, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002015/0.002015, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.576/1.576, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.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.864/1.864, allocations: 292.2 MB / 0.5485 GB, free: 13.65 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.002158/0.002159, allocations: 69.86 kB / 0.671 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3498, allocations: 114.6 MB / 0.7829 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002652/0.3525, allocations: 0.8718 MB / 0.7837 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001855/0.3544, allocations: 1.196 MB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.395e-05/0.3545, allocations: 0 / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.122e-05/0.3546, allocations: 7.922 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.3547, allocations: 15.88 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.3553, allocations: 124.8 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.3555, allocations: 159.7 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.3556, allocations: 24.2 kB / 0.7852 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3558, allocations: 63.83 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.3559, allocations: 63.73 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.298e-05/0.3559, allocations: 16 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.28e-05/0.356, allocations: 27.98 kB / 0.7854 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.356, allocations: 19.92 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.022e-05/0.3561, allocations: 55.77 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.3564, allocations: 143.8 kB / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3564, allocations: 0 / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3564, allocations: 0 / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.3564, allocations: 3.938 kB / 0.7856 GB, free: 11.09 MB / 0.6075 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.0008056/0.3572, allocations: 448.9 kB / 0.786 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3573, allocations: 8.031 kB / 0.786 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.813e-05/0.3573, allocations: 12.84 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.3575, allocations: 180.2 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3575, allocations: 8.375 kB / 0.7862 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.3576, allocations: 12.31 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.3579, allocations: 101.4 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3579, allocations: 4.188 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.3579, allocations: 7.938 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.358, allocations: 0 / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.3583, allocations: 91.91 kB / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007259/0.359, allocations: 396.4 kB / 0.7868 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.3593, allocations: 90.66 kB / 0.7869 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.3595, allocations: 60.75 kB / 0.7869 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.3596, allocations: 4 kB / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.36, allocations: 119.3 kB / 0.7871 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.804e-06/0.36, allocations: 0 / 0.7871 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0007049/0.3607, allocations: 213.3 kB / 0.7873 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.3608, allocations: 55.34 kB / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.361, allocations: 133.8 kB / 0.7874 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.361, allocations: 33.7 kB / 0.7875 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.971e-05/0.3611, allocations: 96.03 kB / 0.7876 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.3612, allocations: 35.62 kB / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.3613, allocations: 41.7 kB / 0.7876 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3615, allocations: 330.8 kB / 0.788 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.3617, allocations: 79.94 kB / 0.788 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.362, allocations: 108.1 kB / 0.7881 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.3624, allocations: 185.8 kB / 0.7883 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3625, allocations: 0 / 0.7883 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000688/0.3631, allocations: 270.3 kB / 0.7886 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.603e-05/0.3632, allocations: 33.7 kB / 0.7886 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.3632, allocations: 4 kB / 0.7886 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3633, allocations: 0 / 0.7886 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.3634, allocations: 28.09 kB / 0.7886 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.3635, allocations: 7.938 kB / 0.7886 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.3637, allocations: 43.8 kB / 0.7887 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.3638, allocations: 15.98 kB / 0.7887 GB, free: 7.617 MB / 0.6075 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 0.0001329/0.3639, allocations: 125.7 kB / 0.7888 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.3639, allocations: 11.91 kB / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.3644, allocations: 173.8 kB / 0.789 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3644, allocations: 4 kB / 0.789 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3645, allocations: 0 / 0.789 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3645, allocations: 0 / 0.789 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007338/0.3652, allocations: 458.3 kB / 0.7894 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3652, allocations: 3.938 kB / 0.7894 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3653, allocations: 19.97 kB / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.3653, allocations: 0 / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3653, allocations: 0 / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3654, allocations: 0 / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3654, allocations: 7.938 kB / 0.7895 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004787/0.3658, allocations: 255.4 kB / 0.7897 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.3659, allocations: 85.02 kB / 0.7898 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.3659, allocations: 0 / 0.7898 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3661, allocations: 19.97 kB / 0.7898 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.252e-05/0.3661, allocations: 27.8 kB / 0.7898 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3662, allocations: 8 kB / 0.7898 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.974e-05/0.3662, allocations: 91.27 kB / 0.7899 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3663, allocations: 0 / 0.7899 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002896/0.3665, allocations: 44.05 kB / 0.79 GB, free: 6.203 MB / 0.6075 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.0002004/0.3668, allocations: 103.2 kB / 0.7901 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006098/0.3674, allocations: 239.2 kB / 0.7903 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3674, allocations: 0 / 0.7903 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.3676, allocations: 68.98 kB / 0.7904 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.3679, allocations: 22 kB / 0.7904 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.3684, allocations: 226.8 kB / 0.7906 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.3688, allocations: 0.6924 MB / 0.7913 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.466e-05/0.3689, allocations: 12.55 kB / 0.7913 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.369, allocations: 23.31 kB / 0.7913 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.369, allocations: 0 / 0.7913 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of Templates: time 0.004762/0.3737, allocations: 1.802 MB / 0.7931 GB, free: 2.977 MB / 0.6075 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)