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.001002/0.001002, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008155/0.008156, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.72/1.72, allocations: 205.4 MB / 222.4 MB, free: 5.785 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.677/1.677, allocations: 252 MB / 0.5105 GB, free: 4.652 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.0005636/0.0005641, allocations: 16 kB / 0.6249 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5866/0.5872, allocations: 106.3 MB / 0.7287 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001739/0.589, allocations: 1.249 MB / 0.73 GB, free: 10.01 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005608/0.5895, allocations: 276 kB / 0.7302 GB, free: 9.734 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.794e-05/0.5896, allocations: 0 / 0.7302 GB, free: 9.734 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.227e-05/0.5897, allocations: 7.938 kB / 0.7302 GB, free: 9.727 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.5898, allocations: 7.922 kB / 0.7302 GB, free: 9.719 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.59, allocations: 39.91 kB / 0.7303 GB, free: 9.68 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.5902, allocations: 83.81 kB / 0.7303 GB, free: 9.598 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.5903, allocations: 32.2 kB / 0.7304 GB, free: 9.566 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.345e-05/0.5904, allocations: 31.8 kB / 0.7304 GB, free: 9.535 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.973e-05/0.5905, allocations: 35.83 kB / 0.7304 GB, free: 9.5 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.5905, allocations: 8 kB / 0.7305 GB, free: 9.492 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.635e-05/0.5905, allocations: 4 kB / 0.7305 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.5906, allocations: 19.91 kB / 0.7305 GB, free: 9.469 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.658e-05/0.5906, allocations: 57.5 kB / 0.7305 GB, free: 9.406 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.5908, allocations: 89.67 kB / 0.7306 GB, free: 9.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.5908, allocations: 3.938 kB / 0.7306 GB, free: 9.316 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5908, allocations: 0 / 0.7306 GB, free: 9.316 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.5908, allocations: 0 / 0.7306 GB, free: 9.316 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.0006882/0.5915, allocations: 407.1 kB / 0.731 GB, free: 8.867 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.5915, allocations: 8.031 kB / 0.731 GB, free: 8.859 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.092e-05/0.5916, allocations: 12.84 kB / 0.731 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.5918, allocations: 188.2 kB / 0.7312 GB, free: 8.625 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.5918, allocations: 4.375 kB / 0.7312 GB, free: 8.621 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.5918, allocations: 16.38 kB / 0.7312 GB, free: 8.605 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.5921, allocations: 110.1 kB / 0.7313 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.5922, allocations: 192 / 0.7313 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.5922, allocations: 3.938 kB / 0.7313 GB, free: 8.488 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.5922, allocations: 4 kB / 0.7313 GB, free: 8.484 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003812/0.5926, allocations: 115.9 kB / 0.7314 GB, free: 8.371 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006082/0.5932, allocations: 360.6 kB / 0.7318 GB, free: 7.969 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.5938, allocations: 162.6 kB / 0.7319 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.594, allocations: 68.75 kB / 0.732 GB, free: 7.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.594, allocations: 4 kB / 0.732 GB, free: 7.727 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.5943, allocations: 115.3 kB / 0.7321 GB, free: 7.602 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.5944, allocations: 0 / 0.7321 GB, free: 7.602 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0007102/0.5951, allocations: 241.3 kB / 0.7324 GB, free: 7.359 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.5951, allocations: 51.41 kB / 0.7324 GB, free: 7.297 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.5952, allocations: 126.9 kB / 0.7325 GB, free: 7.168 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.5953, allocations: 33.7 kB / 0.7326 GB, free: 7.129 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.5953, allocations: 104 kB / 0.7327 GB, free: 7.023 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.5954, allocations: 23.72 kB / 0.7327 GB, free: 7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.153e-05/0.5954, allocations: 21.7 kB / 0.7327 GB, free: 6.973 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002106/0.5956, allocations: 326.8 kB / 0.733 GB, free: 6.645 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.5958, allocations: 59.95 kB / 0.7331 GB, free: 6.586 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.5961, allocations: 99.34 kB / 0.7332 GB, free: 6.477 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.5965, allocations: 151.7 kB / 0.7333 GB, free: 6.316 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5965, allocations: 0 / 0.7333 GB, free: 6.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004879/0.597, allocations: 197.4 kB / 0.7335 GB, free: 6.117 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.597, allocations: 4 kB / 0.7335 GB, free: 6.113 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.597, allocations: 0 / 0.7335 GB, free: 6.113 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.597, allocations: 7.984 kB / 0.7335 GB, free: 6.105 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.5972, allocations: 27.92 kB / 0.7335 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.5972, allocations: 4.031 kB / 0.7335 GB, free: 6.074 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.5974, allocations: 35.88 kB / 0.7336 GB, free: 6.039 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.5974, allocations: 4 kB / 0.7336 GB, free: 6.035 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.0001134/0.5975, allocations: 129.7 kB / 0.7337 GB, free: 5.898 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.5975, allocations: 7.906 kB / 0.7337 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000513/0.598, allocations: 189.9 kB / 0.7339 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.5981, allocations: 0 / 0.7339 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5981, allocations: 0 / 0.7339 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5981, allocations: 0 / 0.7339 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.5988, allocations: 462.3 kB / 0.7343 GB, free: 5.191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.5988, allocations: 0 / 0.7343 GB, free: 5.191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.5989, allocations: 23.92 kB / 0.7344 GB, free: 5.168 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.5989, allocations: 7.938 kB / 0.7344 GB, free: 5.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.5989, allocations: 4 kB / 0.7344 GB, free: 5.156 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.5989, allocations: 3.984 kB / 0.7344 GB, free: 5.152 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.599, allocations: 3.938 kB / 0.7344 GB, free: 5.148 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.5995, allocations: 267.3 kB / 0.7346 GB, free: 4.871 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/0.5996, allocations: 85.02 kB / 0.7347 GB, free: 4.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.5996, allocations: 7.984 kB / 0.7347 GB, free: 4.762 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.5998, allocations: 27.98 kB / 0.7347 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.817e-05/0.5999, allocations: 19.91 kB / 0.7348 GB, free: 4.715 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.5999, allocations: 8 kB / 0.7348 GB, free: 4.707 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001866/0.6001, allocations: 99.27 kB / 0.7349 GB, free: 4.609 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6001, allocations: 0 / 0.7349 GB, free: 4.609 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002558/0.6004, allocations: 20 kB / 0.7349 GB, free: 4.59 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.0001817/0.6006, allocations: 107.2 kB / 0.735 GB, free: 4.477 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004805/0.6011, allocations: 151.9 kB / 0.7351 GB, free: 4.328 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6011, allocations: 0 / 0.7351 GB, free: 4.328 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.6013, allocations: 75.89 kB / 0.7352 GB, free: 4.254 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.6016, allocations: 22.78 kB / 0.7352 GB, free: 4.234 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006242/0.6023, allocations: 248.2 kB / 0.7355 GB, free: 3.957 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.6026, allocations: 0.6965 MB / 0.7361 GB, free: 3.234 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.877e-05/0.6027, allocations: 4.562 kB / 0.7361 GB, free: 3.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/0.6028, allocations: 15.42 kB / 0.7362 GB, free: 3.215 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.6028, allocations: 0 / 0.7362 GB, free: 3.215 MB / 0.545 GB Notification: Performance of Templates: time 0.004106/0.6069, allocations: 1.176 MB / 0.7373 GB, free: 2.051 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: