Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001042, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01047/0.01047, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.491/1.491, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.000385, allocations: 15.98 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7971/0.7975, allocations: 142.4 MB / 0.9551 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or3): time 0.0008037/0.7984, allocations: 432 kB / 0.9555 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.8, allocations: 1.287 MB / 0.9567 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.832e-05/0.8, allocations: 0.9688 kB / 0.9567 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.8001, allocations: 0 / 0.9567 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.908e-05/0.8002, allocations: 17.97 kB / 0.9567 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000822/0.801, allocations: 297.1 kB / 0.957 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.8012, allocations: 224.6 kB / 0.9572 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.892e-05/0.8013, allocations: 10.28 kB / 0.9573 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.8015, allocations: 91.02 kB / 0.9573 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.8016, allocations: 71.52 kB / 0.9574 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.8017, allocations: 11.72 kB / 0.9574 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.506e-05/0.8018, allocations: 26.64 kB / 0.9574 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.8018, allocations: 16.61 kB / 0.9575 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.8019, allocations: 97.53 kB / 0.9576 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.8021, allocations: 206.1 kB / 0.9577 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.8022, allocations: 1.938 kB / 0.9577 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8022, allocations: 0 / 0.9577 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.8022, allocations: 0 / 0.9577 GB, free: 6.016 MB / 0.7169 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.0004097/0.8026, allocations: 456.1 kB / 0.9582 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.8026, allocations: 13.11 kB / 0.9582 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.56e-05/0.8027, allocations: 15.22 kB / 0.9582 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.59e-05/0.8028, allocations: 180.2 kB / 0.9584 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.8028, allocations: 15.12 kB / 0.9584 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.8029, allocations: 13.34 kB / 0.9584 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.803, allocations: 58.78 kB / 0.9585 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.803, allocations: 3.938 kB / 0.9585 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.8031, allocations: 5.188 kB / 0.9585 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.8031, allocations: 5.609 kB / 0.9585 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.719e-05/0.8031, allocations: 18.95 kB / 0.9585 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004564/0.8036, allocations: 418.6 kB / 0.9589 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.451e-05/0.8037, allocations: 35.75 kB / 0.9589 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.167e-05/0.8037, allocations: 16.08 kB / 0.9589 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.8037, allocations: 1.781 kB / 0.9589 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001438/0.8039, allocations: 100.4 kB / 0.959 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.8039, allocations: 7.938 kB / 0.9591 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002669/0.8041, allocations: 137.2 kB / 0.9592 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.8042, allocations: 54.25 kB / 0.9592 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.249e-05/0.8043, allocations: 142.3 kB / 0.9594 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.8043, allocations: 31.2 kB / 0.9594 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.283e-05/0.8044, allocations: 103.1 kB / 0.9595 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.8044, allocations: 19.84 kB / 0.9595 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.8044, allocations: 28.7 kB / 0.9595 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.361e-05/0.8045, allocations: 329.5 kB / 0.9599 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.8047, allocations: 85.33 kB / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.8049, allocations: 134.2 kB / 0.9601 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.8051, allocations: 237.6 kB / 0.9603 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.8051, allocations: 1.375 kB / 0.9603 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005137/0.8056, allocations: 372.6 kB / 0.9607 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.8057, allocations: 99.56 kB / 0.9607 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.8057, allocations: 10.3 kB / 0.9608 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.8057, allocations: 3.156 kB / 0.9608 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.342e-05/0.8057, allocations: 6.219 kB / 0.9608 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.8057, allocations: 3.031 kB / 0.9608 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005933/0.8063, allocations: 113.9 kB / 0.9609 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.8064, allocations: 21.2 kB / 0.9609 GB, free: 3.172 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul3.y,$PRE.booPul3.y,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 (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 9.604e-05/0.8065, allocations: 133.1 kB / 0.961 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.8065, allocations: 8.531 kB / 0.961 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.8065, allocations: 10.31 kB / 0.961 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.8065, allocations: 4.938 kB / 0.961 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.8066, allocations: 0 / 0.961 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.8066, allocations: 4.953 kB / 0.9611 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.8067, allocations: 189.6 kB / 0.9612 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8067, allocations: 0 / 0.9612 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.036e-05/0.8067, allocations: 5.969 kB / 0.9612 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.8067, allocations: 0.8438 kB / 0.9612 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.8067, allocations: 5.891 kB / 0.9612 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.8067, allocations: 1 kB / 0.9612 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.8067, allocations: 0 / 0.9612 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.8069, allocations: 139 kB / 0.9614 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.044e-05/0.8069, allocations: 82.89 kB / 0.9615 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.8069, allocations: 9.766 kB / 0.9615 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.506e-05/0.807, allocations: 5.125 kB / 0.9615 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.807, allocations: 16.14 kB / 0.9615 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.807, allocations: 8.406 kB / 0.9615 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.902e-05/0.8071, allocations: 94.27 kB / 0.9616 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8071, allocations: 0 / 0.9616 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002714/0.8074, allocations: 43.31 kB / 0.9616 GB, free: 2.48 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y,booPul3.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001327/0.8075, allocations: 112 kB / 0.9617 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004232/0.8079, allocations: 372.3 kB / 0.9621 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.8079, allocations: 0 / 0.9621 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.145e-05/0.808, allocations: 39.3 kB / 0.9621 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.8083, allocations: 21.22 kB / 0.9621 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003268/0.8086, allocations: 206.9 kB / 0.9623 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.8087, allocations: 0.6972 MB / 0.963 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.07e-05/0.8088, allocations: 10.3 kB / 0.963 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.8088, allocations: 12.31 kB / 0.963 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.8088, allocations: 4 kB / 0.963 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of Templates: time 0.004889/0.8137, allocations: 2.484 MB / 0.9655 GB, free: 15.89 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Or3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches