Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001823/0.001823, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.002306/0.002306, allocations: 156.4 kB / 23.01 MB, free: 4.949 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.552/1.552, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.77/2.77, allocations: 359.1 MB / 0.6044 GB, free: 14.84 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002129/0.002129, allocations: 63.89 kB / 0.9516 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3217, allocations: 169.9 MB / 1.117 GB, free: 2.484 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002095/0.3238, allocations: 0.7728 MB / 1.118 GB, free: 1.715 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.3254, allocations: 1.171 MB / 1.119 GB, free: 0.5312 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.3254, allocations: 0 / 1.119 GB, free: 0.5312 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.645e-05/0.3255, allocations: 3.938 kB / 1.119 GB, free: 0.5273 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.983e-05/0.3256, allocations: 19.84 kB / 1.119 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005082/0.3261, allocations: 127.1 kB / 1.12 GB, free: 396 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.3263, allocations: 135.7 kB / 1.12 GB, free: 260 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.3264, allocations: 15.92 kB / 1.12 GB, free: 244 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.3265, allocations: 55.89 kB / 1.12 GB, free: 188 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.3266, allocations: 39.83 kB / 1.12 GB, free: 148 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.3266, allocations: 12 kB / 1.12 GB, free: 136 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.133e-05/0.3267, allocations: 23.98 kB / 1.12 GB, free: 112 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.733e-05/0.3267, allocations: 19.91 kB / 1.12 GB, free: 92 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.3268, allocations: 39.91 kB / 1.12 GB, free: 52 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.327, allocations: 119.5 kB / 1.12 GB, free: 15.93 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.327, allocations: 0 / 1.12 GB, free: 15.93 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3271, allocations: 4 kB / 1.12 GB, free: 15.93 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3271, allocations: 0 / 1.12 GB, free: 15.93 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006905/0.3277, allocations: 351.7 kB / 1.12 GB, free: 15.55 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3278, allocations: 8.031 kB / 1.12 GB, free: 15.54 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.3278, allocations: 8.938 kB / 1.12 GB, free: 15.53 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.328, allocations: 115.4 kB / 1.12 GB, free: 15.39 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.328, allocations: 12.31 kB / 1.12 GB, free: 15.38 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.328, allocations: 8.359 kB / 1.12 GB, free: 15.38 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.3283, allocations: 78.2 kB / 1.121 GB, free: 15.29 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3283, allocations: 8.109 kB / 1.121 GB, free: 15.29 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3283, allocations: 11.88 kB / 1.121 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3283, allocations: 0 / 1.121 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.3286, allocations: 71.92 kB / 1.121 GB, free: 15.2 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.329, allocations: 252.4 kB / 1.121 GB, free: 14.93 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.3292, allocations: 58.48 kB / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.3294, allocations: 44.84 kB / 1.121 GB, free: 14.81 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.3294, allocations: 0 / 1.121 GB, free: 14.81 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.3297, allocations: 91.34 kB / 1.121 GB, free: 14.71 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.3297, allocations: 0 / 1.121 GB, free: 14.71 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0005972/0.3303, allocations: 169.5 kB / 1.121 GB, free: 14.54 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3303, allocations: 55.34 kB / 1.121 GB, free: 14.47 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3305, allocations: 127.9 kB / 1.121 GB, free: 14.34 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.3305, allocations: 29.7 kB / 1.121 GB, free: 14.3 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.819e-05/0.3306, allocations: 96.09 kB / 1.122 GB, free: 14.2 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.3306, allocations: 19.95 kB / 1.122 GB, free: 14.18 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.3307, allocations: 37.7 kB / 1.122 GB, free: 14.14 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3308, allocations: 322.8 kB / 1.122 GB, free: 13.82 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.331, allocations: 81.66 kB / 1.122 GB, free: 13.73 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.3313, allocations: 112.2 kB / 1.122 GB, free: 13.61 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.3316, allocations: 152.2 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3316, allocations: 3.938 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005669/0.3322, allocations: 244.9 kB / 1.122 GB, free: 13.18 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.3323, allocations: 33.7 kB / 1.122 GB, free: 13.14 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.3323, allocations: 4 kB / 1.122 GB, free: 13.14 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3323, allocations: 8.047 kB / 1.122 GB, free: 13.13 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.3324, allocations: 16.3 kB / 1.122 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3324, allocations: 0 / 1.122 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.3326, allocations: 43.89 kB / 1.123 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.3327, allocations: 7.984 kB / 1.123 GB, free: 13.06 MB / 1.076 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.0001202/0.3328, allocations: 121.8 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.471e-05/0.3328, allocations: 7.953 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.3328, allocations: 12.44 kB / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3328, allocations: 0 / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3329, allocations: 3.938 kB / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3329, allocations: 96 / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.333, allocations: 137.1 kB / 1.123 GB, free: 12.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.333, allocations: 0 / 1.123 GB, free: 12.74 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.3331, allocations: 15.98 kB / 1.123 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3331, allocations: 0 / 1.123 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.3331, allocations: 0 / 1.123 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.3331, allocations: 3.984 kB / 1.123 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3331, allocations: 8 kB / 1.123 GB, free: 12.71 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.3335, allocations: 149 kB / 1.123 GB, free: 12.55 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.46e-05/0.3335, allocations: 11.94 kB / 1.123 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.3336, allocations: 0 / 1.123 GB, free: 12.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.3336, allocations: 15.98 kB / 1.123 GB, free: 12.52 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.3337, allocations: 3.984 kB / 1.123 GB, free: 12.52 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.3337, allocations: 8 kB / 1.123 GB, free: 12.51 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.911e-05/0.3337, allocations: 95.2 kB / 1.123 GB, free: 12.42 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.3337, allocations: 0 / 1.123 GB, free: 12.42 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002172/0.334, allocations: 24 kB / 1.123 GB, free: 12.39 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002358/0.3342, allocations: 103.2 kB / 1.123 GB, free: 12.29 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005322/0.3347, allocations: 209.1 kB / 1.123 GB, free: 12.06 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3347, allocations: 0 / 1.123 GB, free: 12.06 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.3349, allocations: 43.91 kB / 1.123 GB, free: 12.02 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.3351, allocations: 16.23 kB / 1.123 GB, free: 12 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.3355, allocations: 176.1 kB / 1.124 GB, free: 11.8 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.811e-05/0.3356, allocations: 75.39 kB / 1.124 GB, free: 11.71 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.192e-05/0.3356, allocations: 4 kB / 1.124 GB, free: 11.71 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.3356, allocations: 12.5 kB / 1.124 GB, free: 11.7 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/0.3356, allocations: 0 / 1.124 GB, free: 11.7 MB / 1.076 GB Notification: Performance of Templates: time 0.004554/0.3402, allocations: 1.722 MB / 1.125 GB, free: 10.02 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.921907652984373]