Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.01218/0.01218, allocations: 98.92 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 202.2 kB / 16.68 MB, free: 5.977 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.55/1.55, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.566/2.566, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.89 kB / 0.9509 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3631, allocations: 140.4 MB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002154/0.3653, allocations: 0.8053 MB / 1.089 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.367, allocations: 1.2 MB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.401e-05/0.3671, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.029e-05/0.3671, allocations: 7.875 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.3672, allocations: 23.78 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.3679, allocations: 150.1 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.3681, allocations: 163.7 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.3682, allocations: 16.22 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.3683, allocations: 67.88 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.3685, allocations: 63.73 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.3685, allocations: 12 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.323e-05/0.3686, allocations: 31.97 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.837e-05/0.3687, allocations: 19.98 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.3688, allocations: 55.78 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.369, allocations: 151.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.369, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.369, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3691, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 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.0008773/0.3699, allocations: 448.8 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.37, allocations: 8.031 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.415e-05/0.3701, allocations: 16.89 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.3702, allocations: 176.3 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.3703, allocations: 12.36 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.3703, allocations: 8.375 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.3706, allocations: 99.38 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3706, allocations: 4.188 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.3706, allocations: 3.938 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3706, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.371, allocations: 91.91 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006809/0.3717, allocations: 384.5 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.372, allocations: 98.64 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.3722, allocations: 60.81 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.3722, allocations: 3.984 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003554/0.3726, allocations: 123.3 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3726, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0006912/0.3733, allocations: 209.4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3733, allocations: 51.41 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3735, allocations: 140.8 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.767e-05/0.3735, allocations: 33.7 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.413e-05/0.3736, allocations: 96.08 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.3736, allocations: 31.78 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.728e-05/0.3737, allocations: 53.62 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3739, allocations: 330.7 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.3741, allocations: 79.94 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.3744, allocations: 108.2 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.3749, allocations: 185.8 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3749, allocations: 0 / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006043/0.3755, allocations: 271.3 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.3756, allocations: 37.69 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3756, allocations: 0 / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3756, allocations: 4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3757, allocations: 23.97 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3758, allocations: 4 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.376, allocations: 39.89 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.376, allocations: 16.03 kB / 1.094 GB, free: 11.24 MB / 0.8575 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.0001336/0.3762, allocations: 129.7 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.3762, allocations: 11.94 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004745/0.3767, allocations: 169.8 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3767, allocations: 0 / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.3767, allocations: 4 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3767, allocations: 7.938 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006624/0.3774, allocations: 450.3 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3774, allocations: 0 / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.722e-05/0.3775, allocations: 19.92 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3775, allocations: 4 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.3775, allocations: 4 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3775, allocations: 3.984 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3776, allocations: 3.938 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.378, allocations: 248.2 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.928e-05/0.3781, allocations: 93.05 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.3782, allocations: 0 / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.3783, allocations: 19.92 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.3784, allocations: 23.97 kB / 1.095 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.3784, allocations: 0 / 1.095 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.378e-05/0.3785, allocations: 98.52 kB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 3.938 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002877/0.3788, allocations: 35.95 kB / 1.095 GB, free: 9.836 MB / 0.8575 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.0002762/0.3791, allocations: 115.2 kB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000593/0.3797, allocations: 227.3 kB / 1.095 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3797, allocations: 4 kB / 1.095 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.3799, allocations: 72.3 kB / 1.095 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3802, allocations: 22.39 kB / 1.095 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004962/0.3807, allocations: 194.6 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3812, allocations: 0.7002 MB / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.708e-05/0.3812, allocations: 8.562 kB / 1.096 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.3813, allocations: 19.42 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3813, allocations: 4 kB / 1.096 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of Templates: time 0.0056/0.3869, allocations: 1.919 MB / 1.098 GB, free: 6.512 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches