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.001615/0.001615, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001617/0.001617, allocations: 165.7 kB / 23.55 MB, free: 0.8867 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.545/1.545, allocations: 177.1 MB / 203.9 MB, free: 5.609 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 2.91/2.91, allocations: 377.8 MB / 0.6232 GB, free: 8.52 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 4.689e-06/4.689e-06, allocations: 0 / 0.8108 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.544e-05/5.012e-05, allocations: 7.125 kB / 0.8108 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002334/0.002384, allocations: 0.8067 MB / 0.8116 GB, free: 1.281 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002226/0.004611, allocations: 1.308 MB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.004681, allocations: 4 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.789e-05/0.004728, allocations: 16.77 kB / 0.8129 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.004834, allocations: 23.78 kB / 0.8129 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008458/0.00568, allocations: 305.5 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.006094, allocations: 296.3 kB / 0.8135 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.006237, allocations: 30.88 kB / 0.8135 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.00649, allocations: 159.8 kB / 0.8137 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.0067, allocations: 91.77 kB / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.5e-05/0.006765, allocations: 29.75 kB / 0.8138 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.006873, allocations: 36 kB / 0.8138 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.006916, allocations: 23.91 kB / 0.8139 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.007055, allocations: 83.86 kB / 0.814 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.007526, allocations: 319 kB / 0.8143 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.007531, allocations: 5.219 kB / 0.8143 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.333e-06/0.007532, allocations: 0 / 0.8143 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.007537, allocations: 0 / 0.8143 GB, free: 14.57 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.0007983/0.008336, allocations: 452.4 kB / 0.8147 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.008394, allocations: 12.03 kB / 0.8147 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.008506, allocations: 32.83 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.008653, allocations: 126.2 kB / 0.8149 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.008693, allocations: 13.25 kB / 0.8149 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.008745, allocations: 20.38 kB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.008958, allocations: 95.47 kB / 0.815 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.008967, allocations: 0.8438 kB / 0.815 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.008983, allocations: 4 kB / 0.815 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.008989, allocations: 0.7188 kB / 0.815 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.009103, allocations: 43.98 kB / 0.815 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009939/0.0101, allocations: 389.2 kB / 0.8154 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.01038, allocations: 70.62 kB / 0.8155 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/0.01044, allocations: 25.41 kB / 0.8155 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.01046, allocations: 5.156 kB / 0.8155 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.01073, allocations: 115.3 kB / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.01074, allocations: 0 / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0004466/0.01118, allocations: 178.6 kB / 0.8158 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.01124, allocations: 59.34 kB / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.01141, allocations: 160.3 kB / 0.816 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.01146, allocations: 29.7 kB / 0.816 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.01158, allocations: 113.6 kB / 0.8161 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.01161, allocations: 27.8 kB / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.01177, allocations: 75.48 kB / 0.8162 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001905/0.01196, allocations: 322.8 kB / 0.8165 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.01227, allocations: 185 kB / 0.8167 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.01261, allocations: 231 kB / 0.8169 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.013, allocations: 267.8 kB / 0.8172 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.013, allocations: 0 / 0.8172 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008676/0.01387, allocations: 0.5034 MB / 0.8177 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.01398, allocations: 109 kB / 0.8178 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.01398, allocations: 0 / 0.8178 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.01401, allocations: 4 kB / 0.8178 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.22e-05/0.01407, allocations: 11.98 kB / 0.8178 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.01408, allocations: 4 kB / 0.8178 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/0.01459, allocations: 86.27 kB / 0.8179 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.01464, allocations: 15.98 kB / 0.8179 GB, free: 10.53 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.0001657/0.0148, allocations: 135.7 kB / 0.818 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.01483, allocations: 16.64 kB / 0.818 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.01488, allocations: 20.7 kB / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01488, allocations: 1.906 kB / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.01489, allocations: 4 kB / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.01489, allocations: 0 / 0.8181 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.01509, allocations: 157.2 kB / 0.8182 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01509, allocations: 0 / 0.8182 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.632e-05/0.01514, allocations: 8.625 kB / 0.8182 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.01514, allocations: 0 / 0.8182 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.01515, allocations: 8.812 kB / 0.8182 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.01516, allocations: 7.875 kB / 0.8182 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.01516, allocations: 4.922 kB / 0.8182 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.01544, allocations: 161 kB / 0.8184 GB, free: 9.961 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.374e-05/0.01546, allocations: 11.91 kB / 0.8184 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.01549, allocations: 9.344 kB / 0.8184 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.19e-05/0.01552, allocations: 3.938 kB / 0.8184 GB, free: 9.938 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.01557, allocations: 11.98 kB / 0.8184 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.01559, allocations: 8.859 kB / 0.8184 GB, free: 9.918 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.301e-05/0.01568, allocations: 105.9 kB / 0.8185 GB, free: 9.816 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01568, allocations: 1.594 kB / 0.8185 GB, free: 9.816 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002867/0.01597, allocations: 48 kB / 0.8186 GB, free: 9.77 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.0002135/0.01618, allocations: 118.8 kB / 0.8187 GB, free: 9.648 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006349/0.01682, allocations: 433.4 kB / 0.8191 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01682, allocations: 0 / 0.8191 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/0.01691, allocations: 47.91 kB / 0.8192 GB, free: 9.125 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.0172, allocations: 35.91 kB / 0.8192 GB, free: 9.09 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00055/0.01775, allocations: 251.2 kB / 0.8194 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.01786, allocations: 92.47 kB / 0.8195 GB, free: 8.715 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.358e-05/0.0179, allocations: 12.97 kB / 0.8195 GB, free: 8.703 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.01795, allocations: 17.56 kB / 0.8195 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of SimCode: time 4.61e-07/0.01795, allocations: 0 / 0.8195 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of Templates: time 0.00803/0.02598, allocations: 3.044 MB / 0.8225 GB, free: 5.738 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=400 -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/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.045114476932213]