Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 91.84 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.008542/0.008542, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.466/1.466, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.507/2.507, allocations: 390.9 MB / 0.6663 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003939, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7628/0.7632, allocations: 142.4 MB / 0.9551 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0009794/0.7643, allocations: 431.3 kB / 0.9555 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.766, allocations: 1.288 MB / 0.9567 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.441e-05/0.7661, allocations: 1.562 kB / 0.9567 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.911e-05/0.7661, allocations: 3.938 kB / 0.9567 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.532e-05/0.7662, allocations: 13.25 kB / 0.9567 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008824/0.7671, allocations: 290.7 kB / 0.957 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.7674, allocations: 227.2 kB / 0.9572 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.7675, allocations: 15.8 kB / 0.9573 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.7676, allocations: 85.7 kB / 0.9573 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.7678, allocations: 71.27 kB / 0.9574 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.309e-05/0.7678, allocations: 12.81 kB / 0.9574 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.7679, allocations: 29.61 kB / 0.9574 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.655e-05/0.768, allocations: 12.56 kB / 0.9575 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.7681, allocations: 102.2 kB / 0.9576 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.7683, allocations: 202.5 kB / 0.9577 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.7684, allocations: 0 / 0.9577 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.255e-06/0.7684, allocations: 3.938 kB / 0.9577 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.7684, allocations: 0 / 0.9577 GB, free: 5.68 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.0004741/0.7689, allocations: 460.2 kB / 0.9582 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.7689, allocations: 9.031 kB / 0.9582 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.769, allocations: 15.25 kB / 0.9582 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.7691, allocations: 184.3 kB / 0.9584 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.7691, allocations: 11.25 kB / 0.9584 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.7692, allocations: 14.12 kB / 0.9584 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.7693, allocations: 54.61 kB / 0.9585 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.7693, allocations: 5.312 kB / 0.9585 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.7694, allocations: 0 / 0.9585 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.7694, allocations: 1.375 kB / 0.9585 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.364e-05/0.7694, allocations: 26.92 kB / 0.9585 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005138/0.77, allocations: 418 kB / 0.9589 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.25e-05/0.77, allocations: 28.2 kB / 0.9589 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.621e-05/0.7701, allocations: 25.12 kB / 0.9589 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.7701, allocations: 0 / 0.9589 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.7703, allocations: 104.8 kB / 0.959 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.7703, allocations: 5.531 kB / 0.959 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003208/0.7706, allocations: 136.6 kB / 0.9592 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.7706, allocations: 53.66 kB / 0.9592 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.7707, allocations: 139.2 kB / 0.9594 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.7708, allocations: 36.05 kB / 0.9594 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.7709, allocations: 90.89 kB / 0.9595 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.7709, allocations: 23.17 kB / 0.9595 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/0.7709, allocations: 29.11 kB / 0.9595 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.771, allocations: 329.1 kB / 0.9598 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.7712, allocations: 90.47 kB / 0.9599 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.7714, allocations: 141.7 kB / 0.9601 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.7717, allocations: 235.3 kB / 0.9603 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7717, allocations: 0 / 0.9603 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005682/0.7723, allocations: 378.2 kB / 0.9607 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/0.7724, allocations: 97.69 kB / 0.9607 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.7724, allocations: 9.375 kB / 0.9608 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.7724, allocations: 2.75 kB / 0.9608 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.892e-05/0.7724, allocations: 6.75 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.7724, allocations: 2.75 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005926/0.773, allocations: 111.5 kB / 0.9609 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.7731, allocations: 21.73 kB / 0.9609 GB, free: 2.84 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,logicalSwitch.y,booPul3.y,$PRE.booPul3.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 0.0001412/0.7732, allocations: 134.1 kB / 0.961 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.7733, allocations: 12.02 kB / 0.961 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.7733, allocations: 13.73 kB / 0.961 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.7733, allocations: 1.375 kB / 0.961 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.7733, allocations: 0 / 0.961 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.7733, allocations: 1.375 kB / 0.9611 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.7735, allocations: 196.6 kB / 0.9612 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7735, allocations: 1.375 kB / 0.9612 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.153e-05/0.7735, allocations: 5.375 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.7735, allocations: 1.375 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.7735, allocations: 1.375 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.7735, allocations: 0 / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7735, allocations: 5.312 kB / 0.9613 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.7738, allocations: 139 kB / 0.9614 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.7738, allocations: 87.92 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.7738, allocations: 1.031 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.338e-05/0.7738, allocations: 5.094 kB / 0.9615 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.7739, allocations: 12.05 kB / 0.9615 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.7739, allocations: 7.016 kB / 0.9615 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.119e-05/0.774, allocations: 96.91 kB / 0.9616 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.774, allocations: 3.938 kB / 0.9616 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000273/0.7743, allocations: 42.81 kB / 0.9616 GB, free: 2.145 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,booPul3.y,logicalSwitch.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.000192/0.7744, allocations: 104.1 kB / 0.9617 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004783/0.7749, allocations: 374.9 kB / 0.9621 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.7749, allocations: 0.9688 kB / 0.9621 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.621e-05/0.775, allocations: 43.25 kB / 0.9621 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.7753, allocations: 23.62 kB / 0.9622 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.7758, allocations: 206.2 kB / 0.9623 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.7759, allocations: 0.7005 MB / 0.963 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.776, allocations: 10.67 kB / 0.963 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.776, allocations: 16.61 kB / 0.9631 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.776, allocations: 4 kB / 0.9631 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of Templates: time 0.005818/0.7818, allocations: 2.482 MB / 0.9655 GB, free: 15.55 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches