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.001982/0.001982, allocations: 109 kB / 16.41 MB, free: 5.98 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.002531/0.002531, allocations: 189.5 kB / 17.34 MB, free: 5.582 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.57/1.57, allocations: 222.9 MB / 241 MB, free: 15.09 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.797/2.797, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.91 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.118/1.12, 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.Edge): time 0.002234/1.122, allocations: 0.7542 MB / 1.168 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001864/1.124, allocations: 1.154 MB / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.546e-05/1.124, allocations: 0 / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.637e-05/1.124, allocations: 3.938 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.635e-05/1.124, allocations: 11.88 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/1.125, allocations: 143 kB / 1.169 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002092/1.125, allocations: 119.8 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/1.125, allocations: 19.98 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/1.125, allocations: 47.89 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/1.126, allocations: 43.88 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/1.126, allocations: 8 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.32e-05/1.126, allocations: 24 kB / 1.17 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.053e-05/1.126, allocations: 15.91 kB / 1.17 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.99e-05/1.126, allocations: 43.84 kB / 1.17 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002489/1.126, allocations: 116.1 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/1.126, allocations: 0 / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.014e-06/1.126, allocations: 0 / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.126, allocations: 4 kB / 1.17 GB, free: 1.309 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.0007348/1.127, allocations: 405 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/1.127, allocations: 8.031 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/1.127, allocations: 20.88 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/1.127, allocations: 176.3 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/1.127, allocations: 384 / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/1.127, allocations: 8.375 kB / 1.17 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/1.127, allocations: 70.22 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/1.128, allocations: 192 / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/1.128, allocations: 3.938 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/1.128, allocations: 3.938 kB / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/1.128, allocations: 47.89 kB / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006004/1.128, allocations: 324.8 kB / 1.171 GB, free: 116 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/1.129, allocations: 58.56 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/1.129, allocations: 44.89 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/1.129, allocations: 4.047 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003157/1.129, allocations: 91.3 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/1.129, allocations: 0 / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0004598/1.13, allocations: 137.6 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/1.13, allocations: 63.33 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/1.13, allocations: 121.7 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/1.13, allocations: 33.7 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/1.13, allocations: 88.14 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/1.13, allocations: 31.78 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-05/1.13, allocations: 37.7 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001853/1.13, allocations: 318.8 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/1.13, allocations: 47.97 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/1.131, allocations: 84.25 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/1.131, allocations: 149.8 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/1.131, allocations: 0 / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004692/1.131, allocations: 211.1 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/1.131, allocations: 37.69 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.131, allocations: 0 / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/1.131, allocations: 4 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/1.132, allocations: 11.98 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/1.132, allocations: 0 / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/1.132, allocations: 40.08 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/1.132, allocations: 8 kB / 1.172 GB, free: 14.39 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.0001326/1.132, allocations: 131.9 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/1.132, allocations: 7.953 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/1.132, allocations: 12.36 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.132, allocations: 0 / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.132, allocations: 0 / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/1.132, allocations: 0 / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/1.133, allocations: 386.3 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/1.133, allocations: 0 / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/1.133, allocations: 8 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/1.133, allocations: 0 / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/1.133, allocations: 7.984 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/1.133, allocations: 3.938 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/1.133, allocations: 0 / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/1.133, allocations: 207.4 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/1.133, allocations: 89 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/1.133, allocations: 7.938 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.424e-05/1.133, allocations: 7.984 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/1.133, allocations: 4 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/1.133, allocations: 11.98 kB / 1.173 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.726e-05/1.133, allocations: 95.28 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/1.133, allocations: 0 / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002744/1.134, allocations: 27.98 kB / 1.173 GB, free: 13.3 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.0001902/1.134, allocations: 103.2 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004413/1.134, allocations: 171.7 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/1.134, allocations: 4.25 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/1.134, allocations: 47.89 kB / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/1.135, allocations: 16.14 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/1.135, allocations: 166.5 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/1.136, allocations: 0.6846 MB / 1.174 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.75e-05/1.136, allocations: 11.98 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.084e-05/1.136, allocations: 11.44 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/1.136, allocations: 0 / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of Templates: time 0.005093/1.141, allocations: 1.451 MB / 1.176 GB, free: 10.59 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 -s cvode -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/jenkins1/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