Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01297/0.01297, allocations: 100.5 kB / 15.73 MB, free: 5.988 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.002212/0.002212, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.594/1.594, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.072/3.072, allocations: 461.8 MB / 0.7347 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3988, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.00182/0.4007, allocations: 0.6529 MB / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.4021, allocations: 1.182 MB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.4022, allocations: 0 / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.4022, allocations: 7.922 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.4023, allocations: 19.92 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000649/0.403, allocations: 215.2 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.4032, allocations: 179.7 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.4033, allocations: 19.97 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.825e-05/0.4034, allocations: 67.89 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.4036, allocations: 63.84 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.4036, allocations: 12 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.803e-05/0.4037, allocations: 31.98 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.4037, allocations: 7.984 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.203e-05/0.4038, allocations: 55.83 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.404, allocations: 147.6 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4041, allocations: 7.922 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4041, allocations: 0 / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.4041, allocations: 0 / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000581/0.4047, allocations: 438.6 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4047, allocations: 16.56 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.4048, allocations: 8.938 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.4049, allocations: 176.3 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.405, allocations: 8.375 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.405, allocations: 8.375 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.4051, allocations: 42.25 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4052, allocations: 4.172 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.4052, allocations: 7.938 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.4052, allocations: 4 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.252e-05/0.4052, allocations: 12 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005166/0.4057, allocations: 352.7 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.75e-05/0.4059, allocations: 42.5 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.843e-05/0.4059, allocations: 12.86 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.4059, allocations: 0 / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/0.4061, allocations: 79.41 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.4061, allocations: 0 / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0002857/0.4064, allocations: 113.5 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.4065, allocations: 55.39 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.4066, allocations: 117.8 kB / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.4066, allocations: 29.7 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.4067, allocations: 92.05 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.4067, allocations: 15.8 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-05/0.4068, allocations: 53.69 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.407, allocations: 323.2 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.4071, allocations: 59.89 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.4073, allocations: 100.2 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.4075, allocations: 159.6 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4075, allocations: 0 / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004212/0.4079, allocations: 256.9 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.106e-05/0.408, allocations: 71.39 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.408, allocations: 3.938 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.408, allocations: 4 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.873e-05/0.408, allocations: 128 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.4081, allocations: 11.94 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.4084, allocations: 51.84 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.4084, allocations: 11.98 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,or1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.000119/0.4086, allocations: 131.5 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.4086, allocations: 7.906 kB / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.4086, allocations: 8.375 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4086, allocations: 0 / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4086, allocations: 3.984 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4086, allocations: 4 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.4088, allocations: 177.6 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4088, allocations: 0 / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.099e-05/0.4088, allocations: 4 kB / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.4088, allocations: 0 / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.4088, allocations: 3.984 kB / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.4088, allocations: 0 / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4089, allocations: 4 kB / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.409, allocations: 113.5 kB / 1.213 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.4091, allocations: 85.02 kB / 1.213 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.4091, allocations: 0 / 1.213 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.793e-05/0.4091, allocations: 96 / 1.213 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.4092, allocations: 11.92 kB / 1.213 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.4092, allocations: 11.98 kB / 1.213 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.213e-05/0.4092, allocations: 91.27 kB / 1.214 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4092, allocations: 4 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002317/0.4095, allocations: 24 kB / 1.214 GB, free: 3.227 MB / 0.9669 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001959/0.4097, allocations: 103.2 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003491/0.41, allocations: 250.6 kB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.41, allocations: 0 / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.434e-05/0.4101, allocations: 31.92 kB / 1.214 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.4103, allocations: 20.36 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003544/0.4107, allocations: 154.7 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.411, allocations: 0.6884 MB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.68e-05/0.4111, allocations: 7.984 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.4111, allocations: 11.44 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.4111, allocations: 0 / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of Templates: time 0.004694/0.4158, allocations: 1.849 MB / 1.217 GB, free: 60 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches