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.001132/0.001132, allocations: 108.8 kB / 16.27 MB, free: 6.004 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.001123/0.001123, allocations: 183.4 kB / 17.19 MB, free: 5.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.6/1.6, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.756/1.756, allocations: 292.3 MB / 0.5495 GB, free: 17.38 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.00148/0.00148, allocations: 67.91 kB / 0.6722 GB, free: 6.582 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2586, allocations: 114.6 MB / 0.784 GB, free: 3.902 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002229/0.2609, allocations: 0.8062 MB / 0.7848 GB, free: 3.09 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001749/0.2626, allocations: 1.207 MB / 0.786 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.2627, allocations: 7.938 kB / 0.786 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.74e-05/0.2628, allocations: 3.938 kB / 0.786 GB, free: 1.855 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.208e-05/0.2629, allocations: 11.86 kB / 0.786 GB, free: 1.844 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.2635, allocations: 150.6 kB / 0.7862 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.00019/0.2637, allocations: 155.7 kB / 0.7863 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2639, allocations: 32.14 kB / 0.7864 GB, free: 1.516 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.264, allocations: 59.83 kB / 0.7864 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.78e-05/0.2641, allocations: 59.8 kB / 0.7865 GB, free: 1.398 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.2642, allocations: 16 kB / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.073e-05/0.2642, allocations: 31.98 kB / 0.7865 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.467e-05/0.2643, allocations: 19.92 kB / 0.7865 GB, free: 1.332 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.2644, allocations: 55.77 kB / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.2646, allocations: 143.8 kB / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2646, allocations: 0 / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2646, allocations: 0 / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.628e-06/0.2647, allocations: 0 / 0.7867 GB, free: 1.137 MB / 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.0007518/0.2654, allocations: 444.9 kB / 0.7872 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2655, allocations: 12.03 kB / 0.7872 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.2655, allocations: 12.83 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.2657, allocations: 180.2 kB / 0.7873 GB, free: 416 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2657, allocations: 8.375 kB / 0.7874 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.2657, allocations: 16.25 kB / 0.7874 GB, free: 392 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.266, allocations: 94.19 kB / 0.7875 GB, free: 292 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.2661, allocations: 192 / 0.7875 GB, free: 292 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.2661, allocations: 11.92 kB / 0.7875 GB, free: 280 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2661, allocations: 4 kB / 0.7875 GB, free: 276 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.2664, allocations: 83.92 kB / 0.7876 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4302/0.6967, allocations: 379 kB / 0.7879 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.697, allocations: 101.2 kB / 0.788 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.6972, allocations: 61.2 kB / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.6972, allocations: 0 / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003157/0.6976, allocations: 124.9 kB / 0.7882 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 2.104e-06/0.6976, allocations: 0 / 0.7882 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0007182/0.6983, allocations: 209.1 kB / 0.7884 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.6984, allocations: 55.78 kB / 0.7884 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.899e-05/0.6985, allocations: 128.1 kB / 0.7886 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.6985, allocations: 34.33 kB / 0.7886 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.6986, allocations: 96.89 kB / 0.7887 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.6986, allocations: 30.12 kB / 0.7887 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.248e-05/0.6987, allocations: 48.45 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.6988, allocations: 322 kB / 0.7891 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.699, allocations: 77.22 kB / 0.7891 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.6993, allocations: 118.5 kB / 0.7893 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.6997, allocations: 182.8 kB / 0.7894 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.6997, allocations: 2.625 kB / 0.7894 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005555/0.7002, allocations: 278 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.7003, allocations: 37.55 kB / 0.7897 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.7003, allocations: 3.188 kB / 0.7897 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.634e-05/0.7003, allocations: 3.125 kB / 0.7897 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.7005, allocations: 23 kB / 0.7898 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.7005, allocations: 0 / 0.7898 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.7007, allocations: 44.5 kB / 0.7898 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.7008, allocations: 17.23 kB / 0.7898 GB, free: 47.57 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 9.762e-05/0.7009, allocations: 123.6 kB / 0.7899 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.7009, allocations: 14.5 kB / 0.79 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004579/0.7014, allocations: 173.4 kB / 0.7901 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7014, allocations: 1.812 kB / 0.7901 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7014, allocations: 0 / 0.7901 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7014, allocations: 3.25 kB / 0.7901 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006025/0.702, allocations: 450.1 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.702, allocations: 1.344 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/0.7021, allocations: 19.52 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.7022, allocations: 0.875 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.7022, allocations: 4.5 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.7022, allocations: 2.125 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.7022, allocations: 4.609 kB / 0.7906 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.7026, allocations: 264.7 kB / 0.7908 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.7027, allocations: 89.06 kB / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.7027, allocations: 0 / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.7028, allocations: 17.77 kB / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.7029, allocations: 16.23 kB / 0.791 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.7029, allocations: 3.031 kB / 0.791 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.375e-05/0.703, allocations: 101.3 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.122e-06/0.703, allocations: 4.75 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002687/0.7033, allocations: 27.94 kB / 0.7911 GB, free: 46.81 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.0001654/0.7034, allocations: 117.1 kB / 0.7912 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005376/0.704, allocations: 242.4 kB / 0.7914 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.704, allocations: 0 / 0.7914 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.7042, allocations: 69.55 kB / 0.7915 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.7045, allocations: 16.22 kB / 0.7915 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004006/0.7049, allocations: 231.2 kB / 0.7917 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.7051, allocations: 0.694 MB / 0.7924 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.509e-05/0.7051, allocations: 25.44 kB / 0.7924 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of SimCode: time 3.2e-07/0.7051, allocations: 0 / 0.7924 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.003222/0.7084, allocations: 1.634 MB / 0.794 GB, free: 45.73 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)