Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009417, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.0009359/0.0009359, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.738/2.738, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.000363, allocations: 8 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7997/0.8001, allocations: 153.6 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.001422/0.8016, allocations: 389 kB / 1.021 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.8034, allocations: 1.136 MB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.592e-05/0.8034, allocations: 0 / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.074e-05/0.8035, allocations: 3.938 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.54e-05/0.8035, allocations: 7.984 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006985/0.8043, allocations: 192.2 kB / 1.022 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.8044, allocations: 87.81 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.8045, allocations: 12 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.8046, allocations: 59.88 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.8047, allocations: 43.88 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.8048, allocations: 8 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.435e-05/0.8049, allocations: 19.98 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.8049, allocations: 7.984 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.805, allocations: 45.64 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.8051, allocations: 99.69 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.8051, allocations: 0 / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.925e-06/0.8051, allocations: 4 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.8052, allocations: 0 / 1.023 GB, free: 14.98 MB / 0.7794 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.0005551/0.8057, allocations: 414.6 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.8058, allocations: 11.98 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.785e-05/0.8058, allocations: 8 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.806, allocations: 175 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.806, allocations: 4 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.806, allocations: 8 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.8062, allocations: 53.64 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.8062, allocations: 4 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.8062, allocations: 0 / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.8062, allocations: 3.984 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.27e-05/0.8063, allocations: 23.88 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005047/0.8068, allocations: 352.7 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.938e-05/0.8068, allocations: 34.56 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.8069, allocations: 4 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.807, allocations: 79.41 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.807, allocations: 0 / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002948/0.8073, allocations: 105.6 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.8074, allocations: 51.41 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.8075, allocations: 118 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.8075, allocations: 29.7 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.239e-05/0.8076, allocations: 100.2 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.8076, allocations: 11.84 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.8077, allocations: 4 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.8078, allocations: 318.8 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.8079, allocations: 59.97 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.8081, allocations: 92.25 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.8082, allocations: 111.4 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.8082, allocations: 3.953 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003941/0.8086, allocations: 260.8 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.8087, allocations: 67.86 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.8087, allocations: 3.938 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.8087, allocations: 4 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.345e-05/0.8088, allocations: 12.06 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.8088, allocations: 4 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.8092, allocations: 83.72 kB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.8092, allocations: 11.98 kB / 1.025 GB, free: 12.13 MB / 0.7794 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,and1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.8093, allocations: 121.8 kB / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.8094, allocations: 11.94 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.8094, allocations: 4.375 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.8094, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.8094, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.8094, allocations: 4 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.8096, allocations: 181.6 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.8096, allocations: 3.984 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.025e-05/0.8096, allocations: 11.89 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.8097, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.8097, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8097, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.8097, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.8098, allocations: 109 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.8099, allocations: 89.02 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.8099, allocations: 3.953 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.833e-05/0.81, allocations: 0 / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.81, allocations: 7.984 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.81, allocations: 4 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.199e-05/0.8101, allocations: 91.27 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8101, allocations: 0 / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002448/0.8103, allocations: 28 kB / 1.026 GB, free: 11.37 MB / 0.7794 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,and1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001902/0.8105, allocations: 115.2 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003528/0.8109, allocations: 250.7 kB / 1.026 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.8109, allocations: 0 / 1.026 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.672e-05/0.811, allocations: 24 kB / 1.026 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.8112, allocations: 19.92 kB / 1.026 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003558/0.8115, allocations: 171.4 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.8118, allocations: 0.689 MB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.959e-05/0.8119, allocations: 4 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.284e-05/0.8119, allocations: 15.38 kB / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.8119, allocations: 3.938 kB / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of Templates: time 0.00449/0.8164, allocations: 1.666 MB / 1.029 GB, free: 8.363 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches