Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00961/0.00961, allocations: 98 kB / 15.73 MB, free: 6.062 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.001631/0.001632, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.65/1.65, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.714/2.714, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.91 kB / 1.019 GB, free: 9.355 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.108/1.109, allocations: 151.6 MB / 1.167 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002148/1.111, allocations: 0.7626 MB / 1.167 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001607/1.113, allocations: 1.146 MB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.957e-05/1.113, allocations: 0 / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.506e-05/1.113, allocations: 7.922 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.047e-05/1.113, allocations: 15.92 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000621/1.113, allocations: 131.2 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001825/1.114, allocations: 127.7 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/1.114, allocations: 15.98 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/1.114, allocations: 43.86 kB / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.744e-05/1.114, allocations: 47.86 kB / 1.169 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.958e-05/1.114, allocations: 12 kB / 1.169 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.2e-05/1.114, allocations: 23.98 kB / 1.169 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/1.114, allocations: 15.92 kB / 1.169 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.383e-05/1.114, allocations: 39.86 kB / 1.169 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/1.114, allocations: 115.2 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/1.114, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.283e-06/1.114, allocations: 4 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.4e-06/1.114, allocations: 0 / 1.169 GB, free: 1.281 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000613/1.115, allocations: 409.9 kB / 1.169 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/1.115, allocations: 12.03 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.226e-05/1.115, allocations: 8.891 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/1.115, allocations: 180.2 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/1.115, allocations: 4.375 kB / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/1.115, allocations: 4.375 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/1.116, allocations: 66.23 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/1.116, allocations: 4.172 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/1.116, allocations: 3.938 kB / 1.17 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/1.116, allocations: 0 / 1.17 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/1.116, allocations: 43.95 kB / 1.17 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004886/1.116, allocations: 332.7 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/1.117, allocations: 66.53 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/1.117, allocations: 36.95 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.828e-06/1.117, allocations: 3.938 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/1.117, allocations: 91.3 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/1.117, allocations: 0 / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0004519/1.117, allocations: 137.6 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/1.117, allocations: 59.34 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.614e-05/1.118, allocations: 125.8 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/1.118, allocations: 25.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.54e-05/1.118, allocations: 96.2 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/1.118, allocations: 23.8 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.733e-05/1.118, allocations: 41.69 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001251/1.118, allocations: 318.8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/1.118, allocations: 47.95 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/1.118, allocations: 93.31 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/1.119, allocations: 141.8 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.119, allocations: 0 / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004174/1.119, allocations: 211.5 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/1.119, allocations: 37.69 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/1.119, allocations: 7.922 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/1.119, allocations: 0 / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.898e-05/1.119, allocations: 12 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.119, allocations: 7.984 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/1.119, allocations: 32.09 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/1.119, allocations: 7.984 kB / 1.172 GB, free: 14.36 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: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,edge1.y,edge1.u,$PRE.edge1.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.000109/1.12, allocations: 129.7 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/1.12, allocations: 7.953 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/1.12, allocations: 4.375 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/1.12, allocations: 4 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.12, allocations: 0 / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/1.12, allocations: 4 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004888/1.12, allocations: 378.4 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.12, allocations: 4.062 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/1.12, allocations: 15.92 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/1.12, allocations: 3.938 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/1.12, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/1.12, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/1.12, allocations: 4 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/1.121, allocations: 215.4 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/1.121, allocations: 81.06 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/1.121, allocations: 3.984 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.786e-05/1.121, allocations: 4 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/1.121, allocations: 7.984 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/1.121, allocations: 15.94 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.222e-05/1.121, allocations: 95.2 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/1.121, allocations: 0 / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002487/1.121, allocations: 20 kB / 1.173 GB, free: 13.29 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001805/1.121, allocations: 111.2 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004054/1.122, allocations: 179.4 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.122, allocations: 4 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/1.122, allocations: 27.98 kB / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/1.122, allocations: 15.98 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003638/1.123, allocations: 162.5 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/1.123, allocations: 0.6925 MB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.166e-05/1.123, allocations: 7.938 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/1.123, allocations: 11.44 kB / 1.174 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/1.123, allocations: 0 / 1.174 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of Templates: time 0.004099/1.127, allocations: 1.451 MB / 1.175 GB, free: 10.57 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches