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.01111/0.01111, allocations: 98.97 kB / 15.73 MB, free: 6.004 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.002908/0.002908, allocations: 192.8 kB / 16.67 MB, free: 5.93 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.673/2.673, allocations: 437 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.89 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111/1.113, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002107/1.115, allocations: 0.8092 MB / 1.167 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001465/1.116, allocations: 1.208 MB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.566e-05/1.116, allocations: 0 / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/1.116, allocations: 11.88 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/1.116, allocations: 15.86 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/1.117, allocations: 149.9 kB / 1.169 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/1.117, allocations: 159.6 kB / 1.169 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/1.117, allocations: 32.22 kB / 1.169 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/1.117, allocations: 51.91 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/1.118, allocations: 71.72 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/1.118, allocations: 15.94 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.948e-05/1.118, allocations: 27.98 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.031e-05/1.118, allocations: 19.97 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.47e-05/1.118, allocations: 51.78 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002138/1.118, allocations: 148 kB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/1.118, allocations: 4 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.323e-06/1.118, allocations: 0 / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.721e-06/1.118, allocations: 0 / 1.169 GB, free: 1.039 MB / 0.8887 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.0007288/1.119, allocations: 448.8 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/1.119, allocations: 8.625 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/1.119, allocations: 12.89 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/1.119, allocations: 181.6 kB / 1.17 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/1.119, allocations: 12.38 kB / 1.17 GB, free: 304 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/1.119, allocations: 12.31 kB / 1.17 GB, free: 292 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/1.119, allocations: 98.19 kB / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/1.119, allocations: 192 / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/1.119, allocations: 3.938 kB / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.119, allocations: 4 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/1.12, allocations: 87.91 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006097/1.12, allocations: 392.5 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/1.121, allocations: 98.58 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/1.121, allocations: 60.81 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/1.121, allocations: 0 / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003218/1.121, allocations: 127.2 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/1.121, allocations: 0 / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006814/1.122, allocations: 209.5 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/1.122, allocations: 55.41 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.87e-05/1.122, allocations: 127.2 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/1.122, allocations: 33.64 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/1.122, allocations: 104.1 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/1.122, allocations: 35.73 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.233e-05/1.122, allocations: 41.7 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001183/1.123, allocations: 330.8 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/1.123, allocations: 71.94 kB / 1.172 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/1.123, allocations: 112.2 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00043/1.124, allocations: 195.1 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.124, allocations: 0 / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006635/1.124, allocations: 268.5 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/1.124, allocations: 29.7 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/1.124, allocations: 4 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/1.124, allocations: 4.125 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/1.125, allocations: 31.91 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/1.125, allocations: 0 / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/1.125, allocations: 43.84 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/1.125, allocations: 15.98 kB / 1.172 GB, free: 13.57 MB / 0.9044 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.0001389/1.125, allocations: 125.8 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/1.125, allocations: 7.953 kB / 1.173 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004893/1.126, allocations: 173.8 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/1.126, allocations: 4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.126, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/1.126, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/1.126, allocations: 450.3 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/1.126, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/1.126, allocations: 31.84 kB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/1.126, allocations: 0 / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/1.126, allocations: 0 / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/1.126, allocations: 0 / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.126, allocations: 7.922 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/1.127, allocations: 260.1 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/1.127, allocations: 85.06 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/1.127, allocations: 8 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/1.127, allocations: 15.92 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/1.127, allocations: 19.97 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/1.127, allocations: 8 kB / 1.174 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.866e-05/1.127, allocations: 92.39 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/1.127, allocations: 0 / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002893/1.128, allocations: 35.94 kB / 1.174 GB, free: 12.17 MB / 0.9044 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.000247/1.128, allocations: 111.2 kB / 1.174 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006572/1.129, allocations: 239.2 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/1.129, allocations: 0 / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002223/1.129, allocations: 75.88 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/1.129, allocations: 18.47 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/1.13, allocations: 203.1 kB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/1.13, allocations: 0.7001 MB / 1.175 GB, free: 10.76 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.357e-05/1.13, allocations: 8.547 kB / 1.175 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/1.13, allocations: 19.44 kB / 1.175 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/1.13, allocations: 4 kB / 1.175 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of Templates: time 0.00478/1.135, allocations: 1.922 MB / 1.177 GB, free: 8.832 MB / 0.9044 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=480 -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