Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 78.09 kB / 19.76 MB, free: 1.875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 160.3 kB / 23.01 MB, free: 4.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.913/2.913, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 63.91 kB / 0.9819 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.008/1.01, allocations: 176.1 MB / 1.154 GB, free: 33.32 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002098/1.012, allocations: 0.8073 MB / 1.155 GB, free: 32.82 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001387/1.013, allocations: 1.287 MB / 1.156 GB, free: 31.89 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.722e-05/1.013, allocations: 10.38 kB / 1.156 GB, free: 31.88 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/1.013, allocations: 11.2 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 9.151e-05/1.014, allocations: 22.64 kB / 1.156 GB, free: 31.85 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008613/1.014, allocations: 327.9 kB / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/1.015, allocations: 294.8 kB / 1.157 GB, free: 31.56 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/1.015, allocations: 34.91 kB / 1.157 GB, free: 31.54 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/1.015, allocations: 114.8 kB / 1.157 GB, free: 31.5 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/1.015, allocations: 95.53 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.33e-05/1.015, allocations: 26.78 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.212e-05/1.015, allocations: 43.75 kB / 1.157 GB, free: 31.45 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/1.015, allocations: 21.09 kB / 1.157 GB, free: 31.44 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/1.015, allocations: 98.14 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002817/1.016, allocations: 264.2 kB / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/1.016, allocations: 0 / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.282e-06/1.016, allocations: 0 / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.963e-06/1.016, allocations: 4 kB / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006114/1.016, allocations: 457.8 kB / 1.158 GB, free: 30.89 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/1.016, allocations: 8.188 kB / 1.158 GB, free: 30.89 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/1.016, allocations: 23.25 kB / 1.158 GB, free: 30.88 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.459e-05/1.017, allocations: 128.4 kB / 1.158 GB, free: 30.74 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/1.017, allocations: 16.84 kB / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/1.017, allocations: 20.91 kB / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/1.017, allocations: 87.22 kB / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/1.017, allocations: 0 / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/1.017, allocations: 6.844 kB / 1.158 GB, free: 30.67 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/1.017, allocations: 4 kB / 1.158 GB, free: 30.67 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.425e-05/1.017, allocations: 48.81 kB / 1.158 GB, free: 30.65 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/1.017, allocations: 383.5 kB / 1.158 GB, free: 30.38 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/1.018, allocations: 70.27 kB / 1.158 GB, free: 30.33 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.841e-05/1.018, allocations: 25.78 kB / 1.158 GB, free: 30.32 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/1.018, allocations: 2.625 kB / 1.158 GB, free: 30.32 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001513/1.018, allocations: 115.3 kB / 1.159 GB, free: 30.25 MB / 1.076 GB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/1.018, allocations: 0 / 1.159 GB, free: 30.25 MB / 1.076 GB Notification: Performance of matching and sorting (n=14): time 0.0003245/1.018, allocations: 174.2 kB / 1.159 GB, free: 30.17 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/1.018, allocations: 58.44 kB / 1.159 GB, free: 30.11 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/1.018, allocations: 155.3 kB / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/1.018, allocations: 35.48 kB / 1.159 GB, free: 29.95 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/1.018, allocations: 116.7 kB / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/1.018, allocations: 29.36 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/1.019, allocations: 82.69 kB / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.331e-05/1.019, allocations: 321.1 kB / 1.16 GB, free: 29.46 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/1.019, allocations: 186.2 kB / 1.16 GB, free: 29.34 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/1.019, allocations: 237.5 kB / 1.16 GB, free: 29.14 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/1.019, allocations: 255.1 kB / 1.16 GB, free: 28.93 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.019, allocations: 0 / 1.16 GB, free: 28.93 MB / 1.076 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005841/1.02, allocations: 0.4919 MB / 1.161 GB, free: 28.61 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/1.02, allocations: 96.05 kB / 1.161 GB, free: 28.51 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.02, allocations: 4.188 kB / 1.161 GB, free: 28.5 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/1.02, allocations: 10.58 kB / 1.161 GB, free: 28.5 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.766e-05/1.02, allocations: 16.66 kB / 1.161 GB, free: 28.49 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/1.02, allocations: 2.75 kB / 1.161 GB, free: 28.49 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/1.02, allocations: 79.64 kB / 1.161 GB, free: 28.49 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/1.02, allocations: 20.45 kB / 1.161 GB, free: 28.48 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.79e-05/1.021, allocations: 144 kB / 1.161 GB, free: 28.35 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/1.021, allocations: 20.64 kB / 1.161 GB, free: 28.34 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/1.021, allocations: 11.5 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/1.021, allocations: 2.875 kB / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.021, allocations: 0 / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/1.021, allocations: 0 / 1.161 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/1.021, allocations: 149.2 kB / 1.161 GB, free: 28.19 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.021, allocations: 0 / 1.161 GB, free: 28.19 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.322e-05/1.021, allocations: 12.41 kB / 1.161 GB, free: 28.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/1.021, allocations: 11.92 kB / 1.161 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/1.021, allocations: 2.75 kB / 1.161 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/1.021, allocations: 3.281 kB / 1.161 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/1.021, allocations: 0 / 1.161 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/1.021, allocations: 162.5 kB / 1.161 GB, free: 28.07 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.459e-05/1.021, allocations: 14.69 kB / 1.161 GB, free: 28.06 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/1.021, allocations: 10.03 kB / 1.161 GB, free: 28.05 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.121e-05/1.021, allocations: 4 kB / 1.161 GB, free: 28.05 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/1.021, allocations: 13.48 kB / 1.161 GB, free: 28.05 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/1.021, allocations: 5.875 kB / 1.161 GB, free: 28.05 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.66e-05/1.021, allocations: 106.4 kB / 1.162 GB, free: 27.96 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.021, allocations: 4 kB / 1.162 GB, free: 27.96 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002671/1.021, allocations: 53.91 kB / 1.162 GB, free: 27.95 MB / 1.076 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked 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 (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.0001292/1.022, allocations: 110.4 kB / 1.162 GB, free: 27.86 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004168/1.022, allocations: 431.8 kB / 1.162 GB, free: 27.52 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.022, allocations: 0 / 1.162 GB, free: 27.52 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 6.777e-05/1.022, allocations: 49.55 kB / 1.162 GB, free: 27.5 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/1.022, allocations: 41.55 kB / 1.162 GB, free: 27.48 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/1.023, allocations: 246.5 kB / 1.162 GB, free: 27.3 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.949e-05/1.023, allocations: 105.2 kB / 1.163 GB, free: 27.21 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.482e-05/1.023, allocations: 9.516 kB / 1.163 GB, free: 27.21 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/1.023, allocations: 21.06 kB / 1.163 GB, free: 27.2 MB / 1.076 GB Notification: Performance of SimCode: time 4.91e-07/1.023, allocations: 0 / 1.163 GB, free: 27.2 MB / 1.076 GB Notification: Performance of Templates: time 0.005951/1.029, allocations: 3.029 MB / 1.166 GB, free: 26.84 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.39445743104443]