Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Obsolete.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.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.0009588/0.0009589, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.006567/0.006567, allocations: 174.7 kB / 16.27 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.817/2.817, allocations: 473.4 MB / 0.7469 GB, free: 6.098 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003436, allocations: 9.406 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3493, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001049/0.3504, allocations: 0.5476 MB / 1.075 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001595/0.352, allocations: 1.201 MB / 1.076 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.202e-05/0.3521, allocations: 0 / 1.076 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.191e-05/0.3521, allocations: 3.938 kB / 1.076 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.734e-05/0.3522, allocations: 19.91 kB / 1.076 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.3528, allocations: 130.7 kB / 1.076 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.3529, allocations: 143.6 kB / 1.076 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.987e-05/0.353, allocations: 20.22 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.3532, allocations: 55.88 kB / 1.076 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.474e-05/0.3533, allocations: 55.75 kB / 1.076 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.3533, allocations: 8 kB / 1.076 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.768e-05/0.3534, allocations: 16 kB / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.706e-05/0.3534, allocations: 15.97 kB / 1.076 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.709e-05/0.3535, allocations: 81.41 kB / 1.076 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.3537, allocations: 135.8 kB / 1.077 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.3537, allocations: 0 / 1.077 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3537, allocations: 0 / 1.077 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.3537, allocations: 0 / 1.077 GB, free: 5.078 MB / 0.8262 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.000663/0.3544, allocations: 432.9 kB / 1.077 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3544, allocations: 8.031 kB / 1.077 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.3545, allocations: 12.84 kB / 1.077 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3546, allocations: 172.2 kB / 1.077 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3547, allocations: 16.3 kB / 1.077 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.3547, allocations: 12.38 kB / 1.077 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.3551, allocations: 118.1 kB / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.3551, allocations: 192 / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.3551, allocations: 3.938 kB / 1.077 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3551, allocations: 4 kB / 1.077 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003902/0.3555, allocations: 107.9 kB / 1.077 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006373/0.3562, allocations: 392.5 kB / 1.078 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.3565, allocations: 106.6 kB / 1.078 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.3567, allocations: 64.81 kB / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.3568, allocations: 8 kB / 1.078 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.3571, allocations: 127.2 kB / 1.078 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.604e-06/0.3571, allocations: 4 kB / 1.078 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0007635/0.3579, allocations: 241.5 kB / 1.078 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.3579, allocations: 55.41 kB / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.3581, allocations: 133.4 kB / 1.078 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.3581, allocations: 33.7 kB / 1.078 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.29e-05/0.3582, allocations: 92.14 kB / 1.079 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.3582, allocations: 35.55 kB / 1.079 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/0.3583, allocations: 25.7 kB / 1.079 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3584, allocations: 330.8 kB / 1.079 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.3587, allocations: 87.88 kB / 1.079 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.359, allocations: 129.9 kB / 1.079 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.3594, allocations: 205.8 kB / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3595, allocations: 0 / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006803/0.3601, allocations: 291.1 kB / 1.08 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.3602, allocations: 33.7 kB / 1.08 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3602, allocations: 0 / 1.08 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3602, allocations: 4 kB / 1.08 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.3604, allocations: 36.03 kB / 1.08 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3604, allocations: 0 / 1.08 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.3607, allocations: 59.86 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.3608, allocations: 15.98 kB / 1.08 GB, free: 1.473 MB / 0.8262 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 0.0001258/0.3609, allocations: 133.6 kB / 1.08 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.3609, allocations: 7.906 kB / 1.08 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005264/0.3614, allocations: 194.4 kB / 1.08 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3615, allocations: 0 / 1.08 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3615, allocations: 0 / 1.08 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3615, allocations: 0 / 1.08 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007194/0.3622, allocations: 478.4 kB / 1.081 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3622, allocations: 3.938 kB / 1.081 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.3623, allocations: 31.91 kB / 1.081 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3623, allocations: 0 / 1.081 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.3624, allocations: 4 kB / 1.081 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3624, allocations: 0 / 1.081 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.3624, allocations: 7.922 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.3629, allocations: 283.3 kB / 1.081 GB, free: 272 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.3629, allocations: 88.92 kB / 1.081 GB, free: 164 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.363, allocations: 0 / 1.081 GB, free: 164 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.3631, allocations: 19.98 kB / 1.081 GB, free: 144 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.3632, allocations: 23.91 kB / 1.081 GB, free: 120 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3632, allocations: 4 kB / 1.081 GB, free: 116 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.495e-05/0.3632, allocations: 102.4 kB / 1.081 GB, free: 16 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3633, allocations: 0 / 1.081 GB, free: 16 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003129/0.3636, allocations: 43.92 kB / 1.081 GB, free: 15.97 MB / 0.8419 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.0001401/0.3637, allocations: 103.2 kB / 1.081 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006431/0.3644, allocations: 259.2 kB / 1.081 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3644, allocations: 0 / 1.081 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.3646, allocations: 84.14 kB / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.365, allocations: 11.98 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.3654, allocations: 237 kB / 1.082 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.3657, allocations: 0.6926 MB / 1.082 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.028e-05/0.3658, allocations: 12.55 kB / 1.082 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.3658, allocations: 19.38 kB / 1.082 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of SimCode: time 5.61e-07/0.3658, allocations: 0 / 1.082 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of Templates: time 0.004616/0.3705, allocations: 1.71 MB / 1.084 GB, free: 12.8 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)