Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.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.001702/0.001702, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 195.3 kB / 16.53 MB, free: 6.391 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.607/1.607, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.803/2.803, allocations: 437 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 71.89 kB / 0.8692 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7786/0.7808, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00242/0.7833, allocations: 0.8133 MB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001721/0.785, allocations: 1.202 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.218e-05/0.7851, allocations: 0 / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.701e-05/0.7852, allocations: 11.86 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.272e-05/0.7853, allocations: 15.88 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.7858, allocations: 147.7 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.786, allocations: 155.7 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.7861, allocations: 28.19 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.7862, allocations: 63.89 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.7864, allocations: 59.73 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.695e-05/0.7864, allocations: 19.94 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.05e-05/0.7865, allocations: 23.98 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.418e-05/0.7865, allocations: 23.97 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.593e-05/0.7866, allocations: 47.78 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.7869, allocations: 149.5 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7869, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7869, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.7869, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 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.0007854/0.7877, allocations: 448.8 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.7877, allocations: 8.031 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.7878, allocations: 12.84 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.7879, allocations: 173.4 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.788, allocations: 12.31 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.4e-05/0.788, allocations: 20.3 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.7883, allocations: 102.2 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.7883, allocations: 192 / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.7883, allocations: 3.938 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.7884, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003421/0.7887, allocations: 83.91 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.7893, allocations: 384.5 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.7896, allocations: 98.64 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.7898, allocations: 60.75 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.7898, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003595/0.7902, allocations: 115.3 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.7902, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0007079/0.7909, allocations: 209.7 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.791, allocations: 59.34 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.7911, allocations: 130.7 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.7912, allocations: 33.7 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/0.7912, allocations: 96.08 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.7913, allocations: 35.59 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.7914, allocations: 45.69 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.7916, allocations: 322.8 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.7918, allocations: 75.94 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.7921, allocations: 123.3 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.7926, allocations: 184.7 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7926, allocations: 3.938 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006385/0.7933, allocations: 267.4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.7933, allocations: 41.69 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.7933, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.7933, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.7935, allocations: 19.98 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.7935, allocations: 7.922 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.7938, allocations: 47.8 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.7938, allocations: 12 kB / 1.023 GB, free: 12.25 MB / 0.7794 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.0001321/0.794, allocations: 129.8 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.794, allocations: 15.89 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004907/0.7945, allocations: 173.9 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.7945, allocations: 0 / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7945, allocations: 3.938 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.7945, allocations: 7.938 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.7952, allocations: 446.3 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.7953, allocations: 7.938 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.7954, allocations: 19.98 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.7954, allocations: 4 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.7954, allocations: 3.984 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.7954, allocations: 4 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7954, allocations: 3.938 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.7959, allocations: 259.2 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.796, allocations: 85.02 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.796, allocations: 4 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.7961, allocations: 15.98 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.7962, allocations: 19.84 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.7962, allocations: 8 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.574e-05/0.7963, allocations: 96.64 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7963, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002765/0.7966, allocations: 28 kB / 1.024 GB, free: 10.84 MB / 0.7794 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.0001681/0.7968, allocations: 115.2 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006006/0.7974, allocations: 231.2 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7974, allocations: 0 / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.7976, allocations: 76.12 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.7979, allocations: 12 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004875/0.7984, allocations: 207.3 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.7987, allocations: 0.6962 MB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.79e-05/0.7988, allocations: 4.562 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.7988, allocations: 23.42 kB / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7989, allocations: 0 / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of Templates: time 0.005398/0.8043, allocations: 1.914 MB / 1.028 GB, free: 7.516 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches