Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.698/1.698, allocations: 292.6 MB / 307.8 MB, free: 7.117 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 188.8 kB / 376.5 MB, free: 4.441 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 225.7 MB / 0.655 GB, free: 13.13 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008068/0.0008067, allocations: 97.44 kB / 0.7711 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0006142/0.0006142, allocations: 15.98 kB / 0.897 GB, free: 11.47 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.746/0.7466, allocations: 118.2 MB / 1.012 GB, free: 57.07 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001135/0.7478, allocations: 0.5139 MB / 1.013 GB, free: 57.05 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.7493, allocations: 1.182 MB / 1.014 GB, free: 56.97 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.941e-05/0.7494, allocations: 0 / 1.014 GB, free: 56.97 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.208e-05/0.7494, allocations: 5.312 kB / 1.014 GB, free: 56.97 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.218e-05/0.7495, allocations: 11.66 kB / 1.014 GB, free: 56.96 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.75, allocations: 134.3 kB / 1.014 GB, free: 56.95 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.7502, allocations: 134.7 kB / 1.014 GB, free: 56.94 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.7503, allocations: 13.27 kB / 1.014 GB, free: 56.94 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.7504, allocations: 53.53 kB / 1.014 GB, free: 56.93 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.786e-05/0.7505, allocations: 47.27 kB / 1.014 GB, free: 56.93 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.7505, allocations: 6.75 kB / 1.014 GB, free: 56.93 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.236e-05/0.7506, allocations: 27.09 kB / 1.014 GB, free: 56.92 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.7506, allocations: 11.64 kB / 1.014 GB, free: 56.92 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.51e-05/0.7507, allocations: 74.75 kB / 1.015 GB, free: 56.88 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.7509, allocations: 103.9 kB / 1.015 GB, free: 56.88 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.7509, allocations: 0 / 1.015 GB, free: 56.88 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.843e-06/0.7509, allocations: 0 / 1.015 GB, free: 56.88 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.7509, allocations: 4.281 kB / 1.015 GB, free: 56.88 MB / 0.7136 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.0005885/0.7515, allocations: 432.1 kB / 1.015 GB, free: 56.47 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.7516, allocations: 10.84 kB / 1.015 GB, free: 56.47 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.7516, allocations: 9.438 kB / 1.015 GB, free: 56.46 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.036e-05/0.7517, allocations: 178 kB / 1.015 GB, free: 56.26 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.7517, allocations: 7.656 kB / 1.015 GB, free: 56.26 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.7518, allocations: 15.19 kB / 1.015 GB, free: 56.26 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.752, allocations: 107.8 kB / 1.015 GB, free: 56.23 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.7521, allocations: 2.797 kB / 1.015 GB, free: 56.23 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.7521, allocations: 3.938 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.7521, allocations: 3.469 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.7524, allocations: 109.8 kB / 1.016 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.753, allocations: 385.7 kB / 1.016 GB, free: 55.95 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.7533, allocations: 100.7 kB / 1.016 GB, free: 55.93 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.7535, allocations: 73.48 kB / 1.016 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.7535, allocations: 6.562 kB / 1.016 GB, free: 55.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/0.7539, allocations: 127.8 kB / 1.016 GB, free: 55.87 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.7539, allocations: 0.75 kB / 1.016 GB, free: 55.87 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0007175/0.7547, allocations: 243.3 kB / 1.016 GB, free: 55.83 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.7547, allocations: 59.48 kB / 1.016 GB, free: 55.76 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.545e-05/0.7548, allocations: 136.5 kB / 1.017 GB, free: 55.66 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.7549, allocations: 35.86 kB / 1.017 GB, free: 55.62 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.7549, allocations: 97.98 kB / 1.017 GB, free: 55.54 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.755, allocations: 29.52 kB / 1.017 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.417e-05/0.755, allocations: 6.844 kB / 1.017 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.883e-05/0.7551, allocations: 325.4 kB / 1.017 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.7553, allocations: 87.44 kB / 1.017 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.7556, allocations: 124.1 kB / 1.017 GB, free: 55.17 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003977/0.756, allocations: 207.7 kB / 1.017 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.756, allocations: 0 / 1.017 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005791/0.7566, allocations: 285.1 kB / 1.018 GB, free: 55.02 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/0.7566, allocations: 37.64 kB / 1.018 GB, free: 54.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.7567, allocations: 1.281 kB / 1.018 GB, free: 54.99 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.7567, allocations: 2.688 kB / 1.018 GB, free: 54.99 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.7568, allocations: 28.2 kB / 1.018 GB, free: 54.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.7569, allocations: 6.906 kB / 1.018 GB, free: 54.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.7571, allocations: 66.23 kB / 1.018 GB, free: 54.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.7572, allocations: 13.03 kB / 1.018 GB, free: 54.98 MB / 0.7136 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0001328/0.7573, allocations: 138.1 kB / 1.018 GB, free: 54.86 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.7573, allocations: 7.5 kB / 1.018 GB, free: 54.86 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004977/0.7578, allocations: 195.4 kB / 1.018 GB, free: 54.81 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.7579, allocations: 4 kB / 1.018 GB, free: 54.8 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7579, allocations: 3.031 kB / 1.018 GB, free: 54.8 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.7579, allocations: 0 / 1.018 GB, free: 54.8 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006735/0.7586, allocations: 474.8 kB / 1.019 GB, free: 54.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.7586, allocations: 0 / 1.019 GB, free: 54.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.7587, allocations: 27.75 kB / 1.019 GB, free: 54.49 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.7587, allocations: 0 / 1.019 GB, free: 54.49 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.7587, allocations: 8.641 kB / 1.019 GB, free: 54.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.7587, allocations: 3.219 kB / 1.019 GB, free: 54.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.7587, allocations: 5.688 kB / 1.019 GB, free: 54.48 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004734/0.7592, allocations: 274.1 kB / 1.019 GB, free: 54.34 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.7593, allocations: 84.98 kB / 1.019 GB, free: 54.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.7593, allocations: 7.875 kB / 1.019 GB, free: 54.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.7594, allocations: 24.8 kB / 1.019 GB, free: 54.24 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.7595, allocations: 19.56 kB / 1.019 GB, free: 54.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.7595, allocations: 6.625 kB / 1.019 GB, free: 54.23 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.118e-05/0.7596, allocations: 98.09 kB / 1.019 GB, free: 54.16 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1e-07/0.7596, allocations: 0 / 1.019 GB, free: 54.16 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002605/0.7599, allocations: 29.47 kB / 1.019 GB, free: 54.16 MB / 0.7136 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 (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.0001932/0.7601, allocations: 116.9 kB / 1.019 GB, free: 54.07 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000537/0.7606, allocations: 255.7 kB / 1.02 GB, free: 54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7606, allocations: 5.375 kB / 1.02 GB, free: 53.99 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.7608, allocations: 75.48 kB / 1.02 GB, free: 53.99 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.7611, allocations: 17.33 kB / 1.02 GB, free: 53.99 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.7615, allocations: 224.8 kB / 1.02 GB, free: 53.83 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.7617, allocations: 0.6951 MB / 1.021 GB, free: 53.14 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.411e-05/0.7617, allocations: 12.78 kB / 1.021 GB, free: 53.13 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/0.7618, allocations: 16.16 kB / 1.021 GB, free: 53.12 MB / 0.7136 GB Notification: Performance of SimCode: time 2.1e-07/0.7618, allocations: 0 / 1.021 GB, free: 53.12 MB / 0.7136 GB Notification: Performance of Templates: time 0.004032/0.7658, allocations: 1.67 MB / 1.022 GB, free: 53.04 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)