Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.931/1.931, allocations: 306.1 MB / 321.4 MB, free: 10.77 MB / 250.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.001246/0.001246, allocations: 179.2 kB / 393.1 MB, free: 4.109 MB / 314.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.535/1.535, allocations: 225.7 MB / 0.6743 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008611/0.0008611, allocations: 99.5 kB / 0.7935 GB, free: 40.01 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0005418/0.0005419, allocations: 8.562 kB / 0.9224 GB, free: 8.668 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7875/0.7881, allocations: 121.3 MB / 1.041 GB, free: 58.01 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001124/0.7893, allocations: 0.5247 MB / 1.041 GB, free: 57.73 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.7909, allocations: 1.337 MB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.874e-05/0.7909, allocations: 0.5625 kB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.932e-05/0.791, allocations: 6.406 kB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.399e-05/0.791, allocations: 10.27 kB / 1.043 GB, free: 56.67 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.7916, allocations: 138.2 kB / 1.043 GB, free: 56.6 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.7917, allocations: 137.6 kB / 1.043 GB, free: 56.54 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.7919, allocations: 16.48 kB / 1.043 GB, free: 56.54 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.792, allocations: 59.86 kB / 1.043 GB, free: 56.52 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.736e-05/0.7921, allocations: 46.12 kB / 1.043 GB, free: 56.5 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.7921, allocations: 7.5 kB / 1.043 GB, free: 56.5 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.903e-05/0.7922, allocations: 28.56 kB / 1.043 GB, free: 56.49 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.935e-05/0.7922, allocations: 18.17 kB / 1.043 GB, free: 56.48 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.7923, allocations: 73.38 kB / 1.043 GB, free: 56.43 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.7925, allocations: 136.5 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.7925, allocations: 0 / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.926e-06/0.7926, allocations: 2.531 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.7926, allocations: 0.9688 kB / 1.043 GB, free: 56.39 MB / 0.698 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.0006453/0.7932, allocations: 432 kB / 1.044 GB, free: 55.97 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.7933, allocations: 7.562 kB / 1.044 GB, free: 55.97 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.994e-05/0.7933, allocations: 14.31 kB / 1.044 GB, free: 55.97 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.7934, allocations: 176.3 kB / 1.044 GB, free: 55.77 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.7935, allocations: 9.469 kB / 1.044 GB, free: 55.76 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.197e-05/0.7935, allocations: 8.688 kB / 1.044 GB, free: 55.76 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.7938, allocations: 113.7 kB / 1.044 GB, free: 55.71 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.7938, allocations: 5.625 kB / 1.044 GB, free: 55.71 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.7939, allocations: 3.938 kB / 1.044 GB, free: 55.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.7939, allocations: 3.875 kB / 1.044 GB, free: 55.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003352/0.7942, allocations: 109.7 kB / 1.044 GB, free: 55.69 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005719/0.7948, allocations: 384.5 kB / 1.045 GB, free: 55.37 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.7951, allocations: 104.2 kB / 1.045 GB, free: 55.32 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.7953, allocations: 70.08 kB / 1.045 GB, free: 55.3 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.7953, allocations: 1.031 kB / 1.045 GB, free: 55.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003207/0.7956, allocations: 136.6 kB / 1.045 GB, free: 55.23 MB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.7956, allocations: 0 / 1.045 GB, free: 55.23 MB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.0006527/0.7963, allocations: 245.1 kB / 1.045 GB, free: 55.15 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.7963, allocations: 59.28 kB / 1.045 GB, free: 55.09 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.957e-05/0.7964, allocations: 131.3 kB / 1.045 GB, free: 54.97 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.7964, allocations: 35.02 kB / 1.045 GB, free: 54.94 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.7965, allocations: 102.4 kB / 1.045 GB, free: 54.84 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.7965, allocations: 27.53 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.452e-05/0.7966, allocations: 7.938 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.7966, allocations: 322.2 kB / 1.046 GB, free: 54.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.7969, allocations: 89.39 kB / 1.046 GB, free: 54.48 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.7971, allocations: 127 kB / 1.046 GB, free: 54.41 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.7975, allocations: 210.5 kB / 1.046 GB, free: 54.29 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7975, allocations: 0 / 1.046 GB, free: 54.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006077/0.7982, allocations: 291.7 kB / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.7982, allocations: 37.47 kB / 1.046 GB, free: 54.13 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.7982, allocations: 0 / 1.046 GB, free: 54.13 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.7982, allocations: 2.562 kB / 1.046 GB, free: 54.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.7984, allocations: 30.98 kB / 1.047 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.7984, allocations: 2.953 kB / 1.047 GB, free: 54.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.7987, allocations: 65.97 kB / 1.047 GB, free: 54.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.7987, allocations: 10.28 kB / 1.047 GB, free: 54.11 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/0.7988, allocations: 134 kB / 1.047 GB, free: 53.98 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.7988, allocations: 9.672 kB / 1.047 GB, free: 53.97 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.7993, allocations: 196.5 kB / 1.047 GB, free: 53.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.7993, allocations: 2.156 kB / 1.047 GB, free: 53.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.7993, allocations: 0 / 1.047 GB, free: 53.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7994, allocations: 0 / 1.047 GB, free: 53.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006586/0.8, allocations: 475.6 kB / 1.047 GB, free: 53.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.8, allocations: 0 / 1.047 GB, free: 53.54 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.8002, allocations: 27.62 kB / 1.047 GB, free: 53.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.8002, allocations: 0.6094 kB / 1.047 GB, free: 53.54 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.8002, allocations: 7.141 kB / 1.047 GB, free: 53.53 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.8002, allocations: 0 / 1.047 GB, free: 53.53 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.8002, allocations: 3.938 kB / 1.047 GB, free: 53.53 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004422/0.8006, allocations: 275.6 kB / 1.048 GB, free: 53.36 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-05/0.8007, allocations: 95.23 kB / 1.048 GB, free: 53.26 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.8007, allocations: 1.219 kB / 1.048 GB, free: 53.26 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.8008, allocations: 16.62 kB / 1.048 GB, free: 53.26 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.8009, allocations: 21.44 kB / 1.048 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.8009, allocations: 2.859 kB / 1.048 GB, free: 53.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.517e-05/0.801, allocations: 109.6 kB / 1.048 GB, free: 53.16 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.801, allocations: 3.938 kB / 1.048 GB, free: 53.16 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002427/0.8012, allocations: 28.97 kB / 1.048 GB, free: 53.15 MB / 0.698 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.0001545/0.8014, allocations: 112.4 kB / 1.048 GB, free: 53.06 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005396/0.8019, allocations: 257.7 kB / 1.048 GB, free: 52.95 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.802, allocations: 0 / 1.048 GB, free: 52.95 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.8022, allocations: 81.55 kB / 1.048 GB, free: 52.93 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.8025, allocations: 17.19 kB / 1.048 GB, free: 52.92 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.8029, allocations: 225.2 kB / 1.049 GB, free: 52.75 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.8031, allocations: 0.7005 MB / 1.049 GB, free: 52.05 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.228e-05/0.8031, allocations: 6.859 kB / 1.049 GB, free: 52.05 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/0.8032, allocations: 16.47 kB / 1.049 GB, free: 52.04 MB / 0.698 GB Notification: Performance of SimCode: time 2.01e-07/0.8032, allocations: 4 kB / 1.049 GB, free: 52.04 MB / 0.698 GB Notification: Performance of Templates: time 0.004263/0.8074, allocations: 1.704 MB / 1.051 GB, free: 51.91 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)