Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.402/1.402, allocations: 255.9 MB / 271.2 MB, free: 8.922 MB / 218.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.001129/0.001129, allocations: 189.9 kB / 330.8 MB, free: 480 kB / 250.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.756/1.756, allocations: 225.7 MB / 0.6016 GB, free: 1.652 MB / 426.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.0008888/0.0008888, allocations: 91.62 kB / 0.709 GB, free: 7.109 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 16 kB / 0.8261 GB, free: 115.7 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1934, allocations: 109.2 MB / 0.9328 GB, free: 6.273 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001568/0.195, allocations: 1.233 MB / 0.934 GB, free: 5.027 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0004732/0.1955, allocations: 263.3 kB / 0.9342 GB, free: 4.77 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.1955, allocations: 0 / 0.9342 GB, free: 4.77 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.1956, allocations: 0 / 0.9342 GB, free: 4.77 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 9.244e-05/0.1957, allocations: 19.84 kB / 0.9342 GB, free: 4.75 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.1959, allocations: 31.95 kB / 0.9343 GB, free: 4.719 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 9.03e-05/0.196, allocations: 95.7 kB / 0.9344 GB, free: 4.625 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1961, allocations: 20.22 kB / 0.9344 GB, free: 4.605 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 6.632e-05/0.1962, allocations: 27.91 kB / 0.9344 GB, free: 4.578 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.823e-05/0.1962, allocations: 43.77 kB / 0.9345 GB, free: 4.535 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.1962, allocations: 4 kB / 0.9345 GB, free: 4.531 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.1963, allocations: 4 kB / 0.9345 GB, free: 4.527 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.1963, allocations: 19.86 kB / 0.9345 GB, free: 4.508 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 4.994e-05/0.1963, allocations: 61.44 kB / 0.9345 GB, free: 4.441 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 9.685e-05/0.1965, allocations: 87.98 kB / 0.9346 GB, free: 4.355 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1965, allocations: 0 / 0.9346 GB, free: 4.355 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1965, allocations: 0 / 0.9346 GB, free: 4.355 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.1965, allocations: 0 / 0.9346 GB, free: 4.355 MB / 0.573 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.0005713/0.1971, allocations: 411.2 kB / 0.935 GB, free: 3.902 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1971, allocations: 11.98 kB / 0.935 GB, free: 3.891 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.1971, allocations: 12.83 kB / 0.935 GB, free: 3.879 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.1973, allocations: 180.2 kB / 0.9352 GB, free: 3.664 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.1973, allocations: 4.375 kB / 0.9352 GB, free: 3.66 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.1973, allocations: 8.375 kB / 0.9352 GB, free: 3.652 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.1976, allocations: 114.1 kB / 0.9353 GB, free: 3.535 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1976, allocations: 192 / 0.9353 GB, free: 3.535 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.1976, allocations: 11.92 kB / 0.9353 GB, free: 3.523 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1976, allocations: 0 / 0.9353 GB, free: 3.523 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.198, allocations: 111.9 kB / 0.9354 GB, free: 3.414 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.1985, allocations: 364.5 kB / 0.9358 GB, free: 3.008 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.199, allocations: 158.6 kB / 0.9359 GB, free: 2.844 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.1991, allocations: 72.8 kB / 0.936 GB, free: 2.77 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.1992, allocations: 0 / 0.936 GB, free: 2.77 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003048/0.1995, allocations: 123.2 kB / 0.9361 GB, free: 2.637 MB / 0.573 GB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.1995, allocations: 0 / 0.9361 GB, free: 2.637 MB / 0.573 GB Notification: Performance of matching and sorting (n=11): time 0.0005905/0.2001, allocations: 229.8 kB / 0.9364 GB, free: 2.406 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.2001, allocations: 59.39 kB / 0.9364 GB, free: 2.336 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.016e-05/0.2002, allocations: 122.2 kB / 0.9365 GB, free: 2.207 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.2002, allocations: 29.7 kB / 0.9366 GB, free: 2.172 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.2003, allocations: 100 kB / 0.9367 GB, free: 2.07 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.2003, allocations: 31.62 kB / 0.9367 GB, free: 2.039 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.308e-06/0.2003, allocations: 4 kB / 0.9367 GB, free: 2.035 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.2004, allocations: 322.7 kB / 0.937 GB, free: 1.711 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.2006, allocations: 67.95 kB / 0.9371 GB, free: 1.645 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2007, allocations: 99.31 kB / 0.9372 GB, free: 1.535 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.2011, allocations: 147.3 kB / 0.9373 GB, free: 1.379 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2011, allocations: 0 / 0.9373 GB, free: 1.379 MB / 0.573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003814/0.2014, allocations: 185.5 kB / 0.9375 GB, free: 1.191 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2015, allocations: 16 kB / 0.9375 GB, free: 1.176 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2015, allocations: 0 / 0.9375 GB, free: 1.176 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2015, allocations: 0 / 0.9375 GB, free: 1.176 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.2016, allocations: 35.91 kB / 0.9375 GB, free: 1.141 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.2016, allocations: 7.938 kB / 0.9375 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.2018, allocations: 35.81 kB / 0.9376 GB, free: 1.098 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2018, allocations: 8 kB / 0.9376 GB, free: 1.09 MB / 0.573 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (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 7.778e-05/0.2019, allocations: 131.5 kB / 0.9377 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.2019, allocations: 7.906 kB / 0.9377 GB, free: 0.9453 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004089/0.2023, allocations: 181.9 kB / 0.9379 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2023, allocations: 0 / 0.9379 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2023, allocations: 4 kB / 0.9379 GB, free: 0.7578 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2023, allocations: 0 / 0.9379 GB, free: 0.7578 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.2029, allocations: 470.2 kB / 0.9383 GB, free: 248 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2029, allocations: 4 kB / 0.9383 GB, free: 244 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.373e-05/0.203, allocations: 19.98 kB / 0.9383 GB, free: 224 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.203, allocations: 0 / 0.9383 GB, free: 224 kB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.203, allocations: 0 / 0.9383 GB, free: 224 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.203, allocations: 0 / 0.9383 GB, free: 224 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.203, allocations: 3.938 kB / 0.9384 GB, free: 220 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004421/0.2035, allocations: 271.5 kB / 0.9386 GB, free: 15.93 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-05/0.2035, allocations: 81.02 kB / 0.9387 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.2035, allocations: 8 kB / 0.9387 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.2037, allocations: 23.97 kB / 0.9387 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.481e-05/0.2038, allocations: 27.84 kB / 0.9387 GB, free: 15.77 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2038, allocations: 0 / 0.9387 GB, free: 15.77 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.167e-05/0.2039, allocations: 103.3 kB / 0.9388 GB, free: 15.67 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2039, allocations: 0 / 0.9388 GB, free: 15.67 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002333/0.2041, allocations: 23.91 kB / 0.9389 GB, free: 15.65 MB / 0.5886 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.000153/0.2043, allocations: 107.8 kB / 0.939 GB, free: 15.54 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004325/0.2047, allocations: 156.2 kB / 0.9391 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2047, allocations: 0 / 0.9391 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.2049, allocations: 80.08 kB / 0.9392 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.2052, allocations: 8 kB / 0.9392 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005286/0.2058, allocations: 251.4 kB / 0.9394 GB, free: 15.01 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.2061, allocations: 0.6926 MB / 0.9401 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.422e-05/0.2061, allocations: 16.53 kB / 0.9401 GB, free: 14.28 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.2062, allocations: 15.44 kB / 0.9402 GB, free: 14.26 MB / 0.5886 GB Notification: Performance of SimCode: time 4.41e-07/0.2062, allocations: 0 / 0.9402 GB, free: 14.26 MB / 0.5886 GB Notification: Performance of Templates: time 0.003288/0.2095, allocations: 1.161 MB / 0.9413 GB, free: 13.11 MB / 0.5886 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)