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.01249/0.01249, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002406/0.002406, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.307/2.307, allocations: 390.2 MB / 0.6648 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.91 kB / 0.9509 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9802/0.9816, allocations: 140.4 MB / 1.088 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002397/0.984, allocations: 0.8154 MB / 1.089 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001983/0.986, allocations: 1.2 MB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.9861, allocations: 0.9688 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.971e-05/0.9862, allocations: 4.828 kB / 1.09 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.9863, allocations: 19.5 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007416/0.987, allocations: 152.8 kB / 1.09 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000332/0.9874, allocations: 159.8 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.9875, allocations: 21.22 kB / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.9877, allocations: 63.88 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.9879, allocations: 63.38 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.9879, allocations: 18.16 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.9881, allocations: 27.38 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.9881, allocations: 23.23 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.9882, allocations: 52.31 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.9886, allocations: 151.3 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.9886, allocations: 1.062 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.415e-06/0.9886, allocations: 0 / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.491e-05/0.9886, allocations: 0 / 1.091 GB, free: 3.789 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.0009307/0.9896, allocations: 448.6 kB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.9896, allocations: 9.469 kB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.282e-05/0.9897, allocations: 12.2 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.9899, allocations: 174.9 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.9899, allocations: 12.69 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.99, allocations: 9.859 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.9904, allocations: 99.97 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.9904, allocations: 0.8906 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.9904, allocations: 9.484 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.9904, allocations: 1.719 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.9909, allocations: 90.97 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007466/0.9916, allocations: 379.7 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.992, allocations: 96.78 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.9922, allocations: 58.11 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.9922, allocations: 1.469 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.9926, allocations: 122 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.9927, allocations: 0 / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0007572/0.9934, allocations: 211.7 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.9935, allocations: 57.84 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.845e-05/0.9936, allocations: 130.9 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.9936, allocations: 34.53 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.9937, allocations: 94.42 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.9937, allocations: 31.36 kB / 1.093 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.9938, allocations: 46.45 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.9939, allocations: 325 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.9942, allocations: 84.91 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.9945, allocations: 108.6 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004896/0.995, allocations: 186 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.995, allocations: 0.9062 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007643/0.9957, allocations: 274.7 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.9958, allocations: 35.59 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.9958, allocations: 0.6875 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.9958, allocations: 2.188 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.996, allocations: 29.41 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.996, allocations: 1.375 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.9963, allocations: 48.95 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.9964, allocations: 12.98 kB / 1.094 GB, free: 1.484 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.0001192/0.9965, allocations: 131.2 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.9965, allocations: 12.97 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00058/0.9971, allocations: 165.8 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.9971, allocations: 1.875 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.9971, allocations: 0 / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.9971, allocations: 1.484 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.9979, allocations: 456.5 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.998, allocations: 4.688 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.9981, allocations: 24.69 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9981, allocations: 1.594 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.9981, allocations: 1.25 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.9981, allocations: 1.781 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.9981, allocations: 4.719 kB / 1.095 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005617/0.9987, allocations: 259.5 kB / 1.095 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.9987, allocations: 84.09 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.9988, allocations: 2.75 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.9989, allocations: 19.89 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.9991, allocations: 15.98 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.9991, allocations: 4.125 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.277e-05/0.9992, allocations: 94.59 kB / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9992, allocations: 0 / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003191/0.9995, allocations: 39.22 kB / 1.095 GB, free: 0.5391 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.0002249/0.9997, allocations: 117.3 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007009/1, allocations: 235.3 kB / 1.095 GB, free: 336 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1, allocations: 3.938 kB / 1.095 GB, free: 332 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002552/1.001, allocations: 76.66 kB / 1.095 GB, free: 308 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/1.001, allocations: 16.83 kB / 1.095 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004888/1.002, allocations: 193.3 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/1.002, allocations: 0.7028 MB / 1.096 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.339e-05/1.002, allocations: 8.312 kB / 1.096 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/1.002, allocations: 18.69 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of SimCode: time 3.81e-07/1.002, allocations: 0 / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of Templates: time 0.006374/1.008, allocations: 1.921 MB / 1.098 GB, free: 15.27 MB / 0.8731 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