Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.8.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.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.84/1.84, allocations: 288.3 MB / 303.2 MB, free: 8.141 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.001769/0.001769, allocations: 175.2 kB / 371.8 MB, free: 10.27 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.734/1.734, allocations: 205.4 MB / 0.6306 GB, free: 9.98 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001277/0.001277, allocations: 102.7 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004796, allocations: 12.88 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2907, allocations: 115.3 MB / 0.9794 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001146/0.2919, allocations: 0.5179 MB / 0.9799 GB, free: 27.17 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.2934, allocations: 1.157 MB / 0.9811 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.2934, allocations: 0 / 0.9811 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.2935, allocations: 3.938 kB / 0.9811 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.91e-05/0.2936, allocations: 19.95 kB / 0.9811 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.294, allocations: 121.8 kB / 0.9812 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.815e-05/0.2941, allocations: 83.83 kB / 0.9813 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.2942, allocations: 20.22 kB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.771e-05/0.2943, allocations: 51.89 kB / 0.9814 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.07e-05/0.2944, allocations: 47.81 kB / 0.9814 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.2945, allocations: 8 kB / 0.9814 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.365e-05/0.2945, allocations: 19.97 kB / 0.9814 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.2945, allocations: 15.92 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.494e-05/0.2946, allocations: 45.64 kB / 0.9815 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.2948, allocations: 100 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2948, allocations: 0 / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.514e-06/0.2948, allocations: 3.984 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.2948, allocations: 0 / 0.9816 GB, free: 25.46 MB / 0.6198 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.0007261/0.2955, allocations: 428.8 kB / 0.982 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.2956, allocations: 12.03 kB / 0.982 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.2957, allocations: 7.906 kB / 0.982 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.2958, allocations: 178.9 kB / 0.9822 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.2958, allocations: 12 kB / 0.9822 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.2958, allocations: 11.94 kB / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.2962, allocations: 105.6 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2962, allocations: 0 / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.2962, allocations: 4 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2962, allocations: 4 kB / 0.9823 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003469/0.2966, allocations: 111.9 kB / 0.9824 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006323/0.2972, allocations: 392.5 kB / 0.9828 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.2975, allocations: 98.66 kB / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.2975, allocations: 4 kB / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.2979, allocations: 135.4 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.2979, allocations: 0 / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0006613/0.2985, allocations: 237.8 kB / 0.9833 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2986, allocations: 55.41 kB / 0.9833 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.558e-05/0.2987, allocations: 131.8 kB / 0.9834 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.2987, allocations: 37.64 kB / 0.9835 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.2988, allocations: 99.97 kB / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.2988, allocations: 35.58 kB / 0.9836 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.2988, allocations: 8 kB / 0.9836 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.411e-05/0.2989, allocations: 318.8 kB / 0.9839 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.2991, allocations: 87.94 kB / 0.984 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.2994, allocations: 132.1 kB / 0.9841 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.2997, allocations: 113.8 kB / 0.9842 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2997, allocations: 0 / 0.9842 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005546/0.3002, allocations: 290 kB / 0.9845 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.3003, allocations: 33.7 kB / 0.9845 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3003, allocations: 4.125 kB / 0.9845 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3003, allocations: 4 kB / 0.9845 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.3005, allocations: 31.97 kB / 0.9846 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3005, allocations: 11.88 kB / 0.9846 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.3008, allocations: 55.95 kB / 0.9846 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.3008, allocations: 12 kB / 0.9847 GB, free: 22.07 MB / 0.6198 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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 8.647e-05/0.3009, allocations: 129.8 kB / 0.9848 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3009, allocations: 11.81 kB / 0.9848 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004486/0.3014, allocations: 202 kB / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3014, allocations: 0 / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3014, allocations: 4 kB / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3014, allocations: 3.953 kB / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/0.302, allocations: 462.4 kB / 0.9854 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.302, allocations: 0 / 0.9854 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.95e-05/0.3021, allocations: 23.98 kB / 0.9855 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3021, allocations: 3.938 kB / 0.9855 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3021, allocations: 7.984 kB / 0.9855 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3022, allocations: 7.953 kB / 0.9855 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3022, allocations: 0 / 0.9855 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.3026, allocations: 275.4 kB / 0.9857 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.54e-05/0.3026, allocations: 81.02 kB / 0.9858 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.3026, allocations: 4 kB / 0.9858 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3028, allocations: 19.98 kB / 0.9858 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/0.3028, allocations: 23.86 kB / 0.9859 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.3028, allocations: 11.98 kB / 0.9859 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.203e-05/0.3029, allocations: 95.27 kB / 0.986 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3029, allocations: 0 / 0.986 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000275/0.3032, allocations: 28 kB / 0.986 GB, free: 20.6 MB / 0.6198 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 (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.0001712/0.3034, allocations: 111.7 kB / 0.9861 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005456/0.3039, allocations: 255.2 kB / 0.9863 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3039, allocations: 4.25 kB / 0.9863 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.3041, allocations: 79.83 kB / 0.9864 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.3044, allocations: 20.61 kB / 0.9864 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004211/0.3048, allocations: 230.9 kB / 0.9867 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.305, allocations: 0.7004 MB / 0.9873 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.502e-05/0.3051, allocations: 8.562 kB / 0.9873 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.3051, allocations: 11.44 kB / 0.9874 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.3051, allocations: 0 / 0.9874 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of Templates: time 0.003734/0.3088, allocations: 1.64 MB / 0.989 GB, free: 17.5 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)