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.001848/0.001848, allocations: 79.7 kB / 20.23 MB, free: 4.195 MB / 18.57 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.002026/0.002026, allocations: 157.3 kB / 23.55 MB, free: 0.8828 MB / 18.57 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.596/1.596, allocations: 177.1 MB / 203.9 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.122/3.122, allocations: 377.9 MB / 0.6232 GB, free: 8.508 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.845e-06/2.845e-06, allocations: 0 / 0.8108 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.116e-05/3.4e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.051 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002241/0.002275, allocations: 0.8206 MB / 0.8116 GB, free: 1.254 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002039/0.004314, allocations: 1.311 MB / 0.8129 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/0.004383, allocations: 4 kB / 0.8129 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.802e-05/0.004421, allocations: 8.656 kB / 0.8129 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.004533, allocations: 29.41 kB / 0.813 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.005353, allocations: 304.8 kB / 0.8132 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.005753, allocations: 299.4 kB / 0.8135 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.005874, allocations: 30.98 kB / 0.8136 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.006112, allocations: 155.8 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.0063, allocations: 87.78 kB / 0.8138 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.006363, allocations: 28 kB / 0.8138 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.006471, allocations: 45.67 kB / 0.8139 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.006507, allocations: 19.92 kB / 0.8139 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.006655, allocations: 87.84 kB / 0.814 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.007096, allocations: 319 kB / 0.8143 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.0071, allocations: 5.188 kB / 0.8143 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.262e-06/0.007101, allocations: 0 / 0.8143 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.007106, allocations: 0 / 0.8143 GB, free: 14.54 MB / 0.7761 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.0008046/0.007911, allocations: 0.5477 MB / 0.8148 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.007948, allocations: 9.75 kB / 0.8148 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.008049, allocations: 36.83 kB / 0.8149 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.008184, allocations: 122.8 kB / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.445e-05/0.008218, allocations: 16.38 kB / 0.815 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.008265, allocations: 18.97 kB / 0.815 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.008455, allocations: 95.75 kB / 0.8151 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.008464, allocations: 0 / 0.8151 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.00848, allocations: 8 kB / 0.8151 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.008485, allocations: 0 / 0.8151 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.008611, allocations: 47.97 kB / 0.8151 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007619/0.009373, allocations: 456 kB / 0.8156 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.009631, allocations: 75.09 kB / 0.8157 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.721e-05/0.009698, allocations: 32.27 kB / 0.8157 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.009714, allocations: 5.656 kB / 0.8157 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.009936, allocations: 120.9 kB / 0.8158 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.009938, allocations: 0 / 0.8158 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0004113/0.01035, allocations: 184.8 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.01041, allocations: 60 kB / 0.816 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.01063, allocations: 232 kB / 0.8163 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.01067, allocations: 38.64 kB / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.0108, allocations: 151.3 kB / 0.8164 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.01084, allocations: 40.94 kB / 0.8165 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.011, allocations: 83.33 kB / 0.8166 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000391/0.01139, allocations: 0.5001 MB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.01173, allocations: 214.2 kB / 0.8173 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.0121, allocations: 282.8 kB / 0.8175 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.01251, allocations: 288.9 kB / 0.8178 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01252, allocations: 0 / 0.8178 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000858/0.01337, allocations: 0.5343 MB / 0.8183 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.01348, allocations: 97.03 kB / 0.8184 GB, free: 9.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.01349, allocations: 4 kB / 0.8184 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.0135, allocations: 4.562 kB / 0.8184 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.338e-05/0.01357, allocations: 22.45 kB / 0.8184 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.01357, allocations: 0 / 0.8184 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000392/0.01396, allocations: 63.83 kB / 0.8185 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.01401, allocations: 23.98 kB / 0.8185 GB, free: 9.816 MB / 0.7761 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 0.0001689/0.01418, allocations: 178.3 kB / 0.8187 GB, free: 9.633 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.01421, allocations: 11.95 kB / 0.8187 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.01426, allocations: 24.7 kB / 0.8187 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.01426, allocations: 4.469 kB / 0.8187 GB, free: 9.59 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.01427, allocations: 4.562 kB / 0.8187 GB, free: 9.586 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.01427, allocations: 0.7812 kB / 0.8187 GB, free: 9.586 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.01448, allocations: 172.5 kB / 0.8189 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01448, allocations: 4 kB / 0.8189 GB, free: 9.379 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.654e-05/0.01453, allocations: 9.938 kB / 0.8189 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01453, allocations: 0 / 0.8189 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.01454, allocations: 0 / 0.8189 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/0.01455, allocations: 7.938 kB / 0.8189 GB, free: 9.363 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.01455, allocations: 3.984 kB / 0.8189 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.01484, allocations: 189.6 kB / 0.8191 GB, free: 9.152 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.897e-05/0.01486, allocations: 11.91 kB / 0.8191 GB, free: 9.141 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.01488, allocations: 0 / 0.8191 GB, free: 9.141 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.461e-05/0.01491, allocations: 8.688 kB / 0.8191 GB, free: 9.133 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.01496, allocations: 11.98 kB / 0.8191 GB, free: 9.121 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.01497, allocations: 8.641 kB / 0.8191 GB, free: 9.113 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001165/0.01509, allocations: 153.6 kB / 0.8193 GB, free: 8.965 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01509, allocations: 3.688 kB / 0.8193 GB, free: 8.965 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002801/0.01537, allocations: 48 kB / 0.8193 GB, free: 8.918 MB / 0.7761 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.0001862/0.01555, allocations: 108 kB / 0.8194 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0007466/0.0163, allocations: 0.5066 MB / 0.8199 GB, free: 8.238 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.0163, allocations: 0 / 0.8199 GB, free: 8.238 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.0164, allocations: 51.67 kB / 0.82 GB, free: 8.184 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.01669, allocations: 37.8 kB / 0.82 GB, free: 8.148 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005401/0.01723, allocations: 264.3 kB / 0.8203 GB, free: 7.863 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.01733, allocations: 95.38 kB / 0.8204 GB, free: 7.754 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.192e-05/0.01737, allocations: 14.03 kB / 0.8204 GB, free: 7.742 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.01741, allocations: 12.5 kB / 0.8204 GB, free: 7.727 MB / 0.7761 GB Notification: Performance of SimCode: time 5.41e-07/0.01741, allocations: 5.125 kB / 0.8204 GB, free: 7.723 MB / 0.7761 GB Notification: Performance of Templates: time 0.007398/0.02481, allocations: 3.034 MB / 0.8234 GB, free: 4.777 MB / 0.7761 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] 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/jenkins/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: 8.346212730975822]