Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.808/4.808, allocations: 0.5623 GB / 0.5775 GB, free: 3.305 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002582/0.002582, allocations: 360.6 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.287/4.287, allocations: 410.7 MB / 1.113 GB, free: 6.062 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001891/0.001891, allocations: 177.2 kB / 1.226 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004983/0.0004986, allocations: 12 kB / 1.349 GB, free: 8.32 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7237/0.7243, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2056/0.9299, allocations: 138.5 MB / 1.597 GB, free: 145.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.9302, allocations: 78.08 kB / 1.597 GB, free: 145.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.0108/0.941, allocations: 2.49 MB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9411, allocations: 3.938 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.777e-06/0.9411, allocations: 0 / 1.599 GB, free: 143.3 MB / 0.8542 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.0007367/0.9418, allocations: 438.2 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.9419, allocations: 13.56 kB / 1.6 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.768e-05/0.942, allocations: 11.91 kB / 1.6 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.9421, allocations: 178.9 kB / 1.6 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.9421, allocations: 8 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.9421, allocations: 12 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.9426, allocations: 110.1 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.9426, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.9426, allocations: 5.469 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.9426, allocations: 4.984 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005675/0.9432, allocations: 111.6 kB / 1.6 GB, free: 142.3 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006463/0.9439, allocations: 383 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.9443, allocations: 111 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/0.9446, allocations: 71.5 kB / 1.6 GB, free: 141.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.9447, allocations: 0.75 kB / 1.6 GB, free: 141.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004507/0.9451, allocations: 138.2 kB / 1.601 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 2.114e-06/0.9451, allocations: 0 / 1.601 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.001062/0.9462, allocations: 240.2 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.9463, allocations: 63.84 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.262e-05/0.9464, allocations: 123.5 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.9464, allocations: 37.69 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.9465, allocations: 96.05 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.9465, allocations: 24.3 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.9466, allocations: 4 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.312e-05/0.9466, allocations: 323.8 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.947, allocations: 86.59 kB / 1.602 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.9475, allocations: 126.9 kB / 1.602 GB, free: 140.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/0.9479, allocations: 112.5 kB / 1.602 GB, free: 140.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.9479, allocations: 4.5 kB / 1.602 GB, free: 140.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009643/0.9489, allocations: 288.9 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.9489, allocations: 33.45 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.9489, allocations: 4 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.949, allocations: 3.953 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.9493, allocations: 35.06 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.9493, allocations: 3.984 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004539/0.9497, allocations: 67.8 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/0.9498, allocations: 11.98 kB / 1.602 GB, free: 139.9 MB / 0.8542 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,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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 0.000136/0.9499, allocations: 127 kB / 1.602 GB, free: 139.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.95, allocations: 7.906 kB / 1.602 GB, free: 139.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007529/0.9507, allocations: 196.6 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.9508, allocations: 0.9062 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.9508, allocations: 3.953 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.9508, allocations: 0.75 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009241/0.9517, allocations: 472.6 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.9517, allocations: 0 / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.9519, allocations: 30.41 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.952, allocations: 0 / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.952, allocations: 7.953 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.952, allocations: 4 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.952, allocations: 1.281 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.9527, allocations: 274 kB / 1.603 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.9528, allocations: 85.02 kB / 1.603 GB, free: 138.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.9528, allocations: 3.938 kB / 1.603 GB, free: 138.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.953, allocations: 23.92 kB / 1.603 GB, free: 138.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.9531, allocations: 23.91 kB / 1.603 GB, free: 138.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.9532, allocations: 6.75 kB / 1.603 GB, free: 138.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.228e-05/0.9533, allocations: 95.27 kB / 1.604 GB, free: 138.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.5e-07/0.9533, allocations: 0 / 1.604 GB, free: 138.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000404/0.9537, allocations: 36.12 kB / 1.604 GB, free: 138.4 MB / 0.8542 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 (triggeredSampler.trigger,$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.0001704/0.9539, allocations: 124.7 kB / 1.604 GB, free: 138.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008598/0.9547, allocations: 253.7 kB / 1.604 GB, free: 138 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.9548, allocations: 0 / 1.604 GB, free: 138 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.9551, allocations: 83.48 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.9555, allocations: 15.98 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/0.956, allocations: 223 kB / 1.604 GB, free: 137.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.9562, allocations: 0.7021 MB / 1.605 GB, free: 137 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.29e-05/0.9563, allocations: 9.828 kB / 1.605 GB, free: 137 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.9564, allocations: 11.44 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of SimCode: time 1.082e-06/0.9564, allocations: 4.594 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.005537/0.9619, allocations: 1.644 MB / 1.607 GB, free: 135.4 MB / 0.8542 GB