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.001688/0.001688, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002187/0.002187, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.597/1.597, allocations: 205.1 MB / 222 MB, free: 4.766 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.663/1.663, allocations: 251.7 MB / 0.5088 GB, free: 3.309 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.001464/0.001464, allocations: 67.91 kB / 0.6216 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.789/0.7905, allocations: 104.7 MB / 0.7238 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.003266/0.7938, allocations: 1.58 MB / 0.7254 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006031/0.7944, allocations: 284 kB / 0.7256 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.598e-05/0.7945, allocations: 3.938 kB / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.7945, allocations: 0 / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.7947, allocations: 19.84 kB / 0.7257 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.7949, allocations: 31.97 kB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.7951, allocations: 91.7 kB / 0.7258 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.7952, allocations: 24.2 kB / 0.7258 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.305e-05/0.7953, allocations: 31.92 kB / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.7954, allocations: 43.81 kB / 0.7259 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.7954, allocations: 4 kB / 0.7259 GB, free: 11.17 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.7954, allocations: 11.94 kB / 0.7259 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.7955, allocations: 15.98 kB / 0.7259 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.681e-05/0.7955, allocations: 39.72 kB / 0.7259 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.7957, allocations: 85.78 kB / 0.726 GB, free: 11.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.7957, allocations: 3.984 kB / 0.726 GB, free: 11.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7957, allocations: 0 / 0.726 GB, free: 11.02 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.7957, allocations: 0 / 0.726 GB, free: 11.02 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.0007522/0.7965, allocations: 415.1 kB / 0.7264 GB, free: 10.56 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.7965, allocations: 8.031 kB / 0.7264 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.7966, allocations: 12.83 kB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.7968, allocations: 185.2 kB / 0.7266 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.7968, allocations: 384 / 0.7266 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.7968, allocations: 16.38 kB / 0.7266 GB, free: 10.31 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.7971, allocations: 98.19 kB / 0.7267 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.7971, allocations: 4.125 kB / 0.7267 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.7972, allocations: 15.86 kB / 0.7267 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.7972, allocations: 0 / 0.7267 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003441/0.7975, allocations: 91.91 kB / 0.7268 GB, free: 10.1 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.7982, allocations: 352.6 kB / 0.7272 GB, free: 9.703 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.7987, allocations: 138.5 kB / 0.7273 GB, free: 9.559 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.7989, allocations: 56.81 kB / 0.7274 GB, free: 9.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.7989, allocations: 4 kB / 0.7274 GB, free: 9.496 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.7993, allocations: 111.2 kB / 0.7275 GB, free: 9.375 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.7993, allocations: 0 / 0.7275 GB, free: 9.375 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0006354/0.7999, allocations: 197.4 kB / 0.7277 GB, free: 9.176 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.8, allocations: 55.41 kB / 0.7277 GB, free: 9.109 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.8001, allocations: 132.5 kB / 0.7278 GB, free: 8.973 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.8001, allocations: 33.7 kB / 0.7279 GB, free: 8.934 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/0.8002, allocations: 96.06 kB / 0.728 GB, free: 8.836 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.8002, allocations: 31.59 kB / 0.728 GB, free: 8.805 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.8003, allocations: 29.72 kB / 0.728 GB, free: 8.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.8004, allocations: 326.8 kB / 0.7283 GB, free: 8.441 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.8006, allocations: 51.95 kB / 0.7284 GB, free: 8.391 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.8008, allocations: 98.2 kB / 0.7285 GB, free: 8.285 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.8011, allocations: 123.3 kB / 0.7286 GB, free: 8.152 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8011, allocations: 0 / 0.7286 GB, free: 8.152 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004165/0.8015, allocations: 169.4 kB / 0.7288 GB, free: 7.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.8015, allocations: 4 kB / 0.7288 GB, free: 7.977 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.8016, allocations: 8.094 kB / 0.7288 GB, free: 7.969 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.8016, allocations: 0 / 0.7288 GB, free: 7.969 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.8017, allocations: 27.97 kB / 0.7288 GB, free: 7.941 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.8017, allocations: 3.938 kB / 0.7288 GB, free: 7.938 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.8019, allocations: 15.98 kB / 0.7288 GB, free: 7.922 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.8019, allocations: 4 kB / 0.7288 GB, free: 7.918 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.0001201/0.802, allocations: 133.8 kB / 0.7289 GB, free: 7.777 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.802, allocations: 11.91 kB / 0.729 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004419/0.8025, allocations: 157.8 kB / 0.7291 GB, free: 7.605 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.8025, allocations: 3.984 kB / 0.7291 GB, free: 7.602 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.8025, allocations: 4 kB / 0.7291 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.8025, allocations: 0 / 0.7291 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006368/0.8032, allocations: 442.9 kB / 0.7295 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8032, allocations: 0 / 0.7295 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.8033, allocations: 23.91 kB / 0.7296 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.8033, allocations: 0 / 0.7296 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.8033, allocations: 0 / 0.7296 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.8033, allocations: 3.938 kB / 0.7296 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.8033, allocations: 3.938 kB / 0.7296 GB, free: 7.078 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.8038, allocations: 255.4 kB / 0.7298 GB, free: 6.812 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.8038, allocations: 85.02 kB / 0.7299 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.8038, allocations: 4 kB / 0.7299 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.804, allocations: 19.97 kB / 0.7299 GB, free: 6.688 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.8041, allocations: 23.91 kB / 0.7299 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.8041, allocations: 7.938 kB / 0.7299 GB, free: 6.656 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.502e-05/0.8042, allocations: 99.27 kB / 0.73 GB, free: 6.559 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8042, allocations: 3.938 kB / 0.73 GB, free: 6.555 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002422/0.8045, allocations: 20 kB / 0.7301 GB, free: 6.535 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.0001713/0.8046, allocations: 99.25 kB / 0.7302 GB, free: 6.43 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004154/0.8051, allocations: 127.8 kB / 0.7303 GB, free: 6.305 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.8051, allocations: 0 / 0.7303 GB, free: 6.305 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.8053, allocations: 71.88 kB / 0.7303 GB, free: 6.234 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.8056, allocations: 19.78 kB / 0.7304 GB, free: 6.219 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005474/0.8061, allocations: 228.7 kB / 0.7306 GB, free: 5.969 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.8065, allocations: 0.7043 MB / 0.7313 GB, free: 5.238 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.318e-05/0.8065, allocations: 4.562 kB / 0.7313 GB, free: 5.234 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.162e-05/0.8066, allocations: 19.42 kB / 0.7313 GB, free: 5.215 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.8066, allocations: 0 / 0.7313 GB, free: 5.215 MB / 0.545 GB Notification: Performance of Templates: time 0.003891/0.8105, allocations: 1.184 MB / 0.7324 GB, free: 4.047 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)