Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.455/1.455, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 176.3 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.83/1.83, allocations: 205.3 MB / 0.5671 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008958/0.0008958, allocations: 88.17 kB / 0.6714 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.456e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2088, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6707/0.8795, allocations: 132.1 MB / 1.014 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.8798, allocations: 74.81 kB / 1.014 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004202/0.8841, allocations: 1.605 MB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.072e-06/0.8841, allocations: 0 / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.8841, allocations: 4 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000543/0.8847, allocations: 410.8 kB / 1.016 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.8847, allocations: 8.031 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.128e-05/0.8848, allocations: 11.81 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.8849, allocations: 192 kB / 1.016 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.885, allocations: 4.172 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.885, allocations: 11.94 kB / 1.016 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001335/0.8851, allocations: 49.12 kB / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.8853, allocations: 77.42 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.8853, allocations: 4 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.8853, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.8853, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.8859, allocations: 352.7 kB / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.886, allocations: 73.67 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.707e-05/0.8861, allocations: 35.44 kB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.8861, allocations: 3.938 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.8863, allocations: 100.5 kB / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.8863, allocations: 0 / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002328/0.8865, allocations: 97.47 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.8866, allocations: 55.41 kB / 1.017 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.8867, allocations: 135.3 kB / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.8867, allocations: 28.89 kB / 1.017 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.8868, allocations: 99.16 kB / 1.018 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.8868, allocations: 24.16 kB / 1.018 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.8868, allocations: 0 / 1.018 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.8869, allocations: 329.8 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.574e-05/0.887, allocations: 33.34 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.558e-05/0.887, allocations: 52.77 kB / 1.018 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.278e-05/0.8871, allocations: 19.19 kB / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8871, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000153/0.8873, allocations: 113 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.8873, allocations: 7.938 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.8873, allocations: 0 / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.8873, allocations: 7.953 kB / 1.018 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.8874, allocations: 19.92 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.8874, allocations: 0 / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.8876, allocations: 27.83 kB / 1.018 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.8876, allocations: 11.91 kB / 1.018 GB, free: 1.832 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 8.847e-05/0.8877, allocations: 105 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.751e-05/0.8877, allocations: 7.906 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.469e-05/0.8877, allocations: 19.55 kB / 1.018 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.8878, allocations: 0 / 1.018 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.8878, allocations: 3.953 kB / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.8878, allocations: 4 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.888, allocations: 182.3 kB / 1.018 GB, free: 1.496 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.888, allocations: 4 kB / 1.018 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.85e-05/0.888, allocations: 15.12 kB / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.888, allocations: 0 / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.8881, allocations: 6.859 kB / 1.018 GB, free: 1.477 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.8881, allocations: 7.938 kB / 1.018 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8881, allocations: 0 / 1.018 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.8883, allocations: 140.7 kB / 1.019 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.8883, allocations: 88.92 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.8883, allocations: 0 / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.8885, allocations: 27.97 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.8885, allocations: 15.36 kB / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.8886, allocations: 7.984 kB / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.046e-05/0.8886, allocations: 95.62 kB / 1.019 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8886, allocations: 3.938 kB / 1.019 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002062/0.8889, allocations: 23.19 kB / 1.019 GB, free: 1.074 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001587/0.889, allocations: 113.5 kB / 1.019 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001544/0.8892, allocations: 71.69 kB / 1.019 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8892, allocations: 0 / 1.019 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.502e-05/0.8893, allocations: 41.5 kB / 1.019 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.8895, allocations: 26.11 kB / 1.019 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.8899, allocations: 164.2 kB / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.8903, allocations: 0.708 MB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.627e-05/0.8904, allocations: 8.766 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/0.8904, allocations: 19.38 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.8904, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of Templates: time 0.003395/0.8938, allocations: 1.104 MB / 1.021 GB, free: 14.85 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches