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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001176, 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.001299/0.001299, allocations: 194.9 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.717/1.717, 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 7.0.3-maint.7.0.x/package.mo): time 1.601/1.601, allocations: 251.6 MB / 0.5089 GB, free: 3.273 MB / 414.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.001415/0.001415, allocations: 67.89 kB / 0.6218 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6872/0.6886, allocations: 104.7 MB / 0.724 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.003082/0.6917, allocations: 1.6 MB / 0.7256 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005853/0.6923, allocations: 276 kB / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.246e-05/0.6924, allocations: 4 kB / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.372e-05/0.6925, allocations: 7.922 kB / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.6926, allocations: 7.875 kB / 0.7258 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.6928, allocations: 39.95 kB / 0.7259 GB, free: 11.17 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.693, allocations: 95.7 kB / 0.726 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.6931, allocations: 20.23 kB / 0.726 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.892e-05/0.6932, allocations: 35.89 kB / 0.726 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.6933, allocations: 43.83 kB / 0.7261 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.6933, allocations: 8 kB / 0.7261 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.6933, allocations: 8 kB / 0.7261 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.526e-05/0.6933, allocations: 23.92 kB / 0.7261 GB, free: 10.94 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.786e-05/0.6934, allocations: 43.78 kB / 0.7261 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.6936, allocations: 93.62 kB / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.6936, allocations: 0 / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6936, allocations: 0 / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.6936, allocations: 0 / 0.7262 GB, free: 10.81 MB / 0.545 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.0007013/0.6943, allocations: 411.1 kB / 0.7266 GB, free: 10.36 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.6944, allocations: 12.03 kB / 0.7266 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.6944, allocations: 12.84 kB / 0.7267 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.6946, allocations: 180.2 kB / 0.7268 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.6946, allocations: 8.375 kB / 0.7268 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.6946, allocations: 4.375 kB / 0.7268 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.6949, allocations: 110.2 kB / 0.7269 GB, free: 9.992 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.6949, allocations: 192 / 0.7269 GB, free: 9.992 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.695, allocations: 3.938 kB / 0.7269 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.695, allocations: 4 kB / 0.727 GB, free: 9.984 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.6953, allocations: 95.84 kB / 0.727 GB, free: 9.891 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.696, allocations: 356.6 kB / 0.7274 GB, free: 9.492 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004845/0.6965, allocations: 130.5 kB / 0.7275 GB, free: 9.355 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.6966, allocations: 60.81 kB / 0.7276 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.6967, allocations: 0 / 0.7276 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002953/0.697, allocations: 107.3 kB / 0.7277 GB, free: 9.176 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.697, allocations: 0 / 0.7277 GB, free: 9.176 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0006494/0.6976, allocations: 209.3 kB / 0.7279 GB, free: 8.965 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.6977, allocations: 51.41 kB / 0.7279 GB, free: 8.902 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.6978, allocations: 137.5 kB / 0.728 GB, free: 8.762 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.6979, allocations: 25.7 kB / 0.7281 GB, free: 8.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/0.698, allocations: 96.08 kB / 0.7282 GB, free: 8.633 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.921e-05/0.698, allocations: 27.61 kB / 0.7282 GB, free: 8.605 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.6981, allocations: 41.7 kB / 0.7282 GB, free: 8.559 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.6982, allocations: 318.8 kB / 0.7285 GB, free: 8.238 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.6984, allocations: 55.95 kB / 0.7286 GB, free: 8.184 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.6986, allocations: 83.31 kB / 0.7287 GB, free: 8.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.6989, allocations: 127.7 kB / 0.7288 GB, free: 7.953 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6989, allocations: 3.938 kB / 0.7288 GB, free: 7.949 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004019/0.6993, allocations: 173.3 kB / 0.729 GB, free: 7.773 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.6993, allocations: 4 kB / 0.729 GB, free: 7.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.6993, allocations: 0 / 0.729 GB, free: 7.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.6994, allocations: 4 kB / 0.729 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.6995, allocations: 27.97 kB / 0.729 GB, free: 7.738 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.6995, allocations: 4 kB / 0.729 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.6996, allocations: 24.06 kB / 0.729 GB, free: 7.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.6996, allocations: 8 kB / 0.729 GB, free: 7.703 MB / 0.545 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 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.pulseStart,$PRE.booPul1.pulseStart,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001033/0.6998, allocations: 121.7 kB / 0.7291 GB, free: 7.574 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.6998, allocations: 7.906 kB / 0.7291 GB, free: 7.566 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004258/0.7002, allocations: 169.9 kB / 0.7293 GB, free: 7.395 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.7002, allocations: 0 / 0.7293 GB, free: 7.395 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.7002, allocations: 0 / 0.7293 GB, free: 7.395 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.7002, allocations: 0 / 0.7293 GB, free: 7.395 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006346/0.7009, allocations: 446.1 kB / 0.7297 GB, free: 6.902 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.7009, allocations: 4 kB / 0.7297 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.701, allocations: 19.97 kB / 0.7298 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.701, allocations: 4 kB / 0.7298 GB, free: 6.875 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.701, allocations: 4 kB / 0.7298 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.701, allocations: 3.938 kB / 0.7298 GB, free: 6.867 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.701, allocations: 3.938 kB / 0.7298 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004322/0.7015, allocations: 247.4 kB / 0.73 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.7015, allocations: 81.02 kB / 0.7301 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.7016, allocations: 4 kB / 0.7301 GB, free: 6.504 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.7017, allocations: 15.97 kB / 0.7301 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.334e-05/0.7018, allocations: 27.91 kB / 0.7301 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.7018, allocations: 0 / 0.7301 GB, free: 6.461 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.832e-05/0.7019, allocations: 95.27 kB / 0.7302 GB, free: 6.367 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7019, allocations: 3.938 kB / 0.7302 GB, free: 6.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002368/0.7021, allocations: 24 kB / 0.7303 GB, free: 6.34 MB / 0.545 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 (zeroCrossing.y,$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 (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.00017/0.7023, allocations: 111.1 kB / 0.7304 GB, free: 6.223 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004262/0.7027, allocations: 136 kB / 0.7305 GB, free: 6.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7028, allocations: 0 / 0.7305 GB, free: 6.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.703, allocations: 72.08 kB / 0.7306 GB, free: 6.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.7033, allocations: 19.23 kB / 0.7306 GB, free: 6.008 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005641/0.7039, allocations: 230.8 kB / 0.7308 GB, free: 5.754 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.7042, allocations: 0.6962 MB / 0.7315 GB, free: 5.031 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.879e-05/0.7043, allocations: 8.547 kB / 0.7315 GB, free: 5.023 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.566e-05/0.7043, allocations: 19.44 kB / 0.7315 GB, free: 5.004 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.7043, allocations: 4 kB / 0.7315 GB, free: 5 MB / 0.545 GB Notification: Performance of Templates: time 0.00399/0.7083, allocations: 1.234 MB / 0.7327 GB, free: 3.773 MB / 0.545 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)