Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.01092/0.01092, allocations: 99.95 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.002225/0.002226, allocations: 189.4 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.55/1.55, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 472.6 MB / 0.7453 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 67.89 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103/1.104, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002266/1.107, allocations: 0.7379 MB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001941/1.109, allocations: 1.155 MB / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.731e-05/1.109, allocations: 0 / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.793e-05/1.109, allocations: 7.938 kB / 1.228 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.371e-05/1.109, allocations: 11.88 kB / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006488/1.11, allocations: 131 kB / 1.228 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002311/1.11, allocations: 119.8 kB / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/1.11, allocations: 15.98 kB / 1.228 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/1.11, allocations: 47.89 kB / 1.228 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/1.11, allocations: 43.83 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/1.11, allocations: 12 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/1.11, allocations: 23.98 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/1.11, allocations: 15.97 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.803e-05/1.11, allocations: 43.84 kB / 1.228 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002734/1.111, allocations: 116.1 kB / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/1.111, allocations: 0 / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.014e-06/1.111, allocations: 0 / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.184e-05/1.111, allocations: 0 / 1.228 GB, free: 11.06 MB / 0.9512 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.0008357/1.112, allocations: 412.9 kB / 1.228 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.112, allocations: 12.03 kB / 1.228 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/1.112, allocations: 8.922 kB / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/1.112, allocations: 172.3 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/1.112, allocations: 12.3 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/1.112, allocations: 12.31 kB / 1.229 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/1.112, allocations: 66.22 kB / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/1.112, allocations: 192 / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/1.112, allocations: 11.88 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/1.112, allocations: 0 / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/1.112, allocations: 43.95 kB / 1.229 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005984/1.113, allocations: 332.8 kB / 1.229 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.113, allocations: 58.5 kB / 1.229 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/1.113, allocations: 36.95 kB / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/1.113, allocations: 0 / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002741/1.114, allocations: 87.36 kB / 1.229 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/1.114, allocations: 0 / 1.229 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0004868/1.114, allocations: 149.6 kB / 1.229 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/1.114, allocations: 55.41 kB / 1.229 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/1.114, allocations: 129.8 kB / 1.23 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/1.114, allocations: 29.7 kB / 1.23 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/1.114, allocations: 88.14 kB / 1.23 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/1.114, allocations: 27.78 kB / 1.23 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/1.115, allocations: 37.7 kB / 1.23 GB, free: 9.098 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001694/1.115, allocations: 318.8 kB / 1.23 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/1.115, allocations: 47.97 kB / 1.23 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/1.115, allocations: 88.25 kB / 1.23 GB, free: 8.629 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/1.115, allocations: 145.8 kB / 1.23 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.115, allocations: 0 / 1.23 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004412/1.116, allocations: 215.1 kB / 1.231 GB, free: 8.242 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/1.116, allocations: 34.94 kB / 1.231 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/1.116, allocations: 4 kB / 1.231 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/1.116, allocations: 0 / 1.231 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/1.116, allocations: 15.92 kB / 1.231 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/1.116, allocations: 12.06 kB / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/1.116, allocations: 35.95 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/1.116, allocations: 4 kB / 1.231 GB, free: 8.133 MB / 0.9512 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.0001203/1.116, allocations: 122.3 kB / 1.231 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/1.116, allocations: 11.95 kB / 1.231 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/1.116, allocations: 8.359 kB / 1.231 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/1.116, allocations: 11.98 kB / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.117, allocations: 0 / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/1.117, allocations: 0 / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000527/1.117, allocations: 386.3 kB / 1.231 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.117, allocations: 0 / 1.231 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.08e-05/1.117, allocations: 8 kB / 1.231 GB, free: 7.527 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.117, allocations: 3.938 kB / 1.231 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/1.117, allocations: 3.984 kB / 1.231 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/1.117, allocations: 4 kB / 1.231 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/1.117, allocations: 0 / 1.231 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/1.117, allocations: 208.5 kB / 1.231 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/1.118, allocations: 85.12 kB / 1.231 GB, free: 7.195 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/1.118, allocations: 4 kB / 1.231 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.305e-05/1.118, allocations: 7.984 kB / 1.231 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/1.118, allocations: 8 kB / 1.231 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/1.118, allocations: 15.92 kB / 1.231 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.965e-05/1.118, allocations: 87.28 kB / 1.232 GB, free: 7.074 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/1.118, allocations: 0 / 1.232 GB, free: 7.074 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002662/1.118, allocations: 23.98 kB / 1.232 GB, free: 7.051 MB / 0.9512 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.0002404/1.118, allocations: 104.4 kB / 1.232 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000437/1.119, allocations: 175.3 kB / 1.232 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/1.119, allocations: 0 / 1.232 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001263/1.119, allocations: 47.89 kB / 1.232 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/1.119, allocations: 12.62 kB / 1.232 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/1.12, allocations: 174.4 kB / 1.232 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/1.12, allocations: 0.6926 MB / 1.233 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.676e-05/1.12, allocations: 7.984 kB / 1.233 GB, free: 5.773 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.973e-05/1.12, allocations: 11.44 kB / 1.233 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/1.12, allocations: 0 / 1.233 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of Templates: time 0.00472/1.125, allocations: 1.459 MB / 1.234 GB, free: 4.32 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches