Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.001452/0.001452, allocations: 104.2 kB / 19.71 MB, free: 2.141 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.001643/0.001643, allocations: 215.5 kB / 23 MB, free: 4.961 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.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.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 3.421/3.421, allocations: 0.49 GB / 0.7959 GB, free: 35.4 MB / 0.6231 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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.003738/0.003738, allocations: 73.73 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4371, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002502/0.4396, allocations: 0.7642 MB / 1.328 GB, free: 256 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.4415, allocations: 1.163 MB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.706e-05/0.4415, allocations: 3.938 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.4416, allocations: 7.938 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.564e-05/0.4417, allocations: 19.8 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.4423, allocations: 142 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.4425, allocations: 119.8 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.4426, allocations: 15.98 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.4427, allocations: 59.83 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.4429, allocations: 51.81 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.148e-05/0.4429, allocations: 12 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.443, allocations: 20 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.047e-05/0.443, allocations: 15.92 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.105e-05/0.4431, allocations: 47.83 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.4433, allocations: 119.5 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4433, allocations: 0 / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4433, allocations: 0 / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.4433, allocations: 4 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007476/0.4441, allocations: 347.8 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.4441, allocations: 8.031 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.4442, allocations: 12.89 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.4443, allocations: 110.5 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.4443, allocations: 8.375 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.4443, allocations: 16.23 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.4446, allocations: 82.19 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.4447, allocations: 4.188 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.4447, allocations: 3.938 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.4447, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003199/0.445, allocations: 75.91 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.4455, allocations: 252.4 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.4457, allocations: 62.42 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.4459, allocations: 40.91 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.4459, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.4462, allocations: 99.34 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.4462, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006449/0.4469, allocations: 169.5 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.4469, allocations: 55.41 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.447, allocations: 122.1 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.4471, allocations: 25.7 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.4471, allocations: 96.09 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.4472, allocations: 15.89 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.811e-05/0.4472, allocations: 37.7 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4474, allocations: 326.8 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.4476, allocations: 81.66 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.4479, allocations: 112.2 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.4483, allocations: 152.2 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4483, allocations: 0 / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005835/0.4488, allocations: 248.8 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.4489, allocations: 33.7 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.4489, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.4489, allocations: 3.984 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4491, allocations: 24.14 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4491, allocations: 3.938 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.4493, allocations: 39.89 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.4493, allocations: 7.984 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001216/0.4494, allocations: 125.7 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.4495, allocations: 7.953 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.4495, allocations: 8.375 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4495, allocations: 4 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.4495, allocations: 3.938 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.4495, allocations: 7.953 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.4495, allocations: 3.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/0.4496, allocations: 15.98 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.4497, allocations: 7.922 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004708/0.4501, allocations: 208.9 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004786/0.4506, allocations: 299.1 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000171/0.4508, allocations: 43.95 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.478e-05/0.4509, allocations: 92.39 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of Backend: time 2.3e-07/0.4509, allocations: 0 / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007011/0.4516, allocations: 257.4 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of SimCode: time 0.0006276/0.4522, allocations: 0.6006 MB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of Templates: time 0.00526/0.4575, allocations: 2.035 MB / 1.336 GB, free: 7.82 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.64027832300053]