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.001783/0.001783, allocations: 104.2 kB / 19.74 MB, free: 2.066 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.002391/0.002391, allocations: 218.7 kB / 23.04 MB, free: 4.844 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.261/3.261, allocations: 0.49 GB / 0.7959 GB, free: 35.41 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.002152/0.002152, allocations: 75.27 kB / 1.155 GB, free: 25.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3561, allocations: 176.1 MB / 1.327 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002029/0.3582, allocations: 0.7782 MB / 1.328 GB, free: 132 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.3597, allocations: 1.174 MB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.3597, allocations: 0 / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.3598, allocations: 3.938 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.89e-05/0.3599, allocations: 19.84 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.3603, allocations: 137.6 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.3605, allocations: 119.8 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.166e-05/0.3606, allocations: 15.97 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.3607, allocations: 55.84 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.776e-05/0.3608, allocations: 39.83 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.3609, allocations: 12 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.3609, allocations: 27.97 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.361, allocations: 15.92 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.985e-05/0.361, allocations: 35.92 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.3612, allocations: 123.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3612, allocations: 0 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3612, allocations: 4 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3612, allocations: 0 / 1.33 GB, free: 14.34 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.000676/0.3619, allocations: 351.7 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.362, allocations: 8.031 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.362, allocations: 12.89 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3621, allocations: 114.5 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.3621, allocations: 8.375 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.3622, allocations: 8.312 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.3624, allocations: 78.2 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3624, allocations: 4.188 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.3624, allocations: 7.922 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3624, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.3627, allocations: 71.92 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004259/0.3632, allocations: 252.4 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.3634, allocations: 62.42 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.3635, allocations: 40.91 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.3636, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.3639, allocations: 99.34 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.3639, allocations: 0 / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0005745/0.3644, allocations: 165.5 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.3645, allocations: 55.34 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.3646, allocations: 125.8 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.3646, allocations: 29.7 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.3647, allocations: 100.2 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.3647, allocations: 19.89 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.3648, allocations: 37.7 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3649, allocations: 318.8 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.3652, allocations: 85.89 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.3654, allocations: 112.2 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003773/0.3658, allocations: 152.1 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3658, allocations: 3.938 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005628/0.3664, allocations: 248.9 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.3664, allocations: 37.7 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-06/0.3664, allocations: 0 / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.3664, allocations: 4.062 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3665, allocations: 19.97 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.3665, allocations: 0 / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.3667, allocations: 39.89 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.3668, allocations: 7.938 kB / 1.332 GB, free: 11.48 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.0001021/0.3669, allocations: 129.7 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3669, allocations: 7.953 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.3669, allocations: 16.36 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3669, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.3669, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3669, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.367, allocations: 129.2 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.367, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.3671, allocations: 15.98 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3671, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3672, allocations: 4 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3672, allocations: 4 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3672, allocations: 4 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.3676, allocations: 152.9 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.3676, allocations: 11.94 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3676, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/0.3677, allocations: 15.98 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.3677, allocations: 3.984 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.3677, allocations: 8 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.854e-05/0.3678, allocations: 91.36 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3678, allocations: 3.938 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002166/0.368, allocations: 24 kB / 1.333 GB, free: 10.81 MB / 1.029 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.0001758/0.3682, allocations: 107.4 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005133/0.3687, allocations: 213 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3687, allocations: 0 / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.3688, allocations: 39.97 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.369, allocations: 21.58 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003282/0.3694, allocations: 191.7 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.289e-05/0.3694, allocations: 79.39 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.3695, allocations: 11.44 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of SimCode: time 4.1e-07/0.3695, allocations: 4 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of Templates: time 0.002992/0.3725, allocations: 1.332 MB / 1.335 GB, free: 8.758 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: 11.471474305028096]