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.001464/0.001464, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001655/0.001655, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.005/1.005, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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 1.941/1.941, allocations: 377.9 MB / 0.624 GB, free: 8.414 MB / 0.5886 GB " [Timeout remaining time 177] 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.404e-06/2.404e-06, allocations: 0 / 0.812 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.816e-05/3.057e-05, allocations: 2.312 kB / 0.812 GB, free: 1.438 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001736/0.001767, allocations: 0.8334 MB / 0.8128 GB, free: 0.6211 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.00324, allocations: 1.332 MB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.811e-05/0.003308, allocations: 0 / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.721e-05/0.003345, allocations: 7.875 kB / 0.8141 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.32e-05/0.003438, allocations: 32.75 kB / 0.8142 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006852/0.004123, allocations: 309.7 kB / 0.8145 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.004404, allocations: 295.4 kB / 0.8147 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.004514, allocations: 27.09 kB / 0.8148 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.00469, allocations: 171.7 kB / 0.8149 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.004826, allocations: 87.72 kB / 0.815 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.134e-05/0.004867, allocations: 28 kB / 0.815 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.574e-05/0.004943, allocations: 37.17 kB / 0.8151 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.998e-05/0.004983, allocations: 23.91 kB / 0.8151 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.935e-05/0.005072, allocations: 83.86 kB / 0.8152 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.005337, allocations: 228.9 kB / 0.8154 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.00534, allocations: 0 / 0.8154 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.283e-06/0.005341, allocations: 0 / 0.8154 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.005347, allocations: 4 kB / 0.8154 GB, free: 13.97 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.0004801/0.005827, allocations: 0.5466 MB / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.00587, allocations: 12.03 kB / 0.816 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.121e-05/0.005931, allocations: 32.83 kB / 0.816 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.006106, allocations: 161 kB / 0.8161 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.006128, allocations: 12.38 kB / 0.8162 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.006155, allocations: 20.38 kB / 0.8162 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.006277, allocations: 94.22 kB / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.006284, allocations: 0.7188 kB / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.006292, allocations: 0 / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.0063, allocations: 8.516 kB / 0.8163 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.559e-05/0.006336, allocations: 22.2 kB / 0.8163 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000409/0.006745, allocations: 413.5 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.006883, allocations: 63.02 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.377e-05/0.006907, allocations: 19.8 kB / 0.8168 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.006916, allocations: 4.656 kB / 0.8168 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.007043, allocations: 105.9 kB / 0.8169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.007045, allocations: 0 / 0.8169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0002133/0.007258, allocations: 138.9 kB / 0.817 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.00729, allocations: 63.27 kB / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.007394, allocations: 207.5 kB / 0.8173 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.00742, allocations: 33.7 kB / 0.8173 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/0.007488, allocations: 160.6 kB / 0.8174 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.007512, allocations: 35.72 kB / 0.8175 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.895e-05/0.007601, allocations: 87.28 kB / 0.8176 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.007716, allocations: 0.4979 MB / 0.818 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.007836, allocations: 149 kB / 0.8182 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.007981, allocations: 229.3 kB / 0.8184 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.008147, allocations: 239.3 kB / 0.8186 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.00815, allocations: 0 / 0.8186 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003861/0.008536, allocations: 457.5 kB / 0.8191 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/0.008593, allocations: 97.08 kB / 0.8192 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.0086, allocations: 4 kB / 0.8192 GB, free: 9.754 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.008615, allocations: 4.562 kB / 0.8192 GB, free: 9.75 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.639e-05/0.008661, allocations: 15.94 kB / 0.8192 GB, free: 9.734 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.008665, allocations: 2.469 kB / 0.8192 GB, free: 9.734 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.008858, allocations: 67.83 kB / 0.8193 GB, free: 9.668 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.008883, allocations: 19.98 kB / 0.8193 GB, free: 9.648 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 9.991e-05/0.008983, allocations: 174.3 kB / 0.8194 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.009001, allocations: 15.94 kB / 0.8195 GB, free: 9.453 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.009032, allocations: 16.78 kB / 0.8195 GB, free: 9.434 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.009036, allocations: 4.469 kB / 0.8195 GB, free: 9.43 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.009038, allocations: 4.5 kB / 0.8195 GB, free: 9.426 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.009042, allocations: 4 kB / 0.8195 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.96e-05/0.009142, allocations: 130.9 kB / 0.8196 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.009143, allocations: 0 / 0.8196 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.597e-05/0.009169, allocations: 16 kB / 0.8196 GB, free: 9.254 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.009172, allocations: 0 / 0.8196 GB, free: 9.254 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.009179, allocations: 7.984 kB / 0.8196 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.00918, allocations: 1.125 kB / 0.8196 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.009182, allocations: 0 / 0.8196 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.00932, allocations: 162.6 kB / 0.8198 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.009332, allocations: 19.53 kB / 0.8198 GB, free: 9.051 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.009344, allocations: 4 kB / 0.8198 GB, free: 9.047 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.772e-05/0.009361, allocations: 4 kB / 0.8198 GB, free: 9.043 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.00939, allocations: 15.91 kB / 0.8198 GB, free: 9.027 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.009398, allocations: 8 kB / 0.8198 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.584e-05/0.009444, allocations: 141.6 kB / 0.82 GB, free: 8.883 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009444, allocations: 0 / 0.82 GB, free: 8.883 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001858/0.009629, allocations: 51.98 kB / 0.82 GB, free: 8.832 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.0001233/0.009753, allocations: 106.2 kB / 0.8201 GB, free: 8.723 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002909/0.01004, allocations: 402.8 kB / 0.8205 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.01005, allocations: 0 / 0.8205 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.231e-05/0.01009, allocations: 56.58 kB / 0.8206 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.01027, allocations: 28.98 kB / 0.8206 GB, free: 8.184 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.0106, allocations: 232.1 kB / 0.8208 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.737e-05/0.01063, allocations: 71.2 kB / 0.8209 GB, free: 7.84 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.378e-05/0.01067, allocations: 14.09 kB / 0.8209 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.01081, allocations: 122.2 kB / 0.821 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of SimCode: time 5.71e-07/0.01081, allocations: 0.7812 kB / 0.821 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of Templates: time 0.00487/0.01568, allocations: 3.296 MB / 0.8242 GB, free: 4.508 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.282337025739253]