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.0008168/0.0008168, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001848, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007078/0.0007078, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008978/0.001606, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.9272/0.9272, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09241/1.02, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.877/1.877, allocations: 378.2 MB / 0.6076 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5356/2.413, allocations: 123.3 MB / 0.728 GB, free: 5.801 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 0.7294 GB, free: 4.441 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.507e-05/1.709e-05, allocations: 2.312 kB / 0.7294 GB, free: 4.438 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001711/0.001728, allocations: 0.834 MB / 0.7302 GB, free: 3.629 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.003191, allocations: 1.189 MB / 0.7314 GB, free: 2.43 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.479e-05/0.003246, allocations: 4.984 kB / 0.7314 GB, free: 2.426 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.003276, allocations: 7.875 kB / 0.7314 GB, free: 2.418 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.712e-05/0.003343, allocations: 17.56 kB / 0.7314 GB, free: 2.406 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003928/0.003736, allocations: 133.1 kB / 0.7315 GB, free: 2.277 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.000227/0.003963, allocations: 129.5 kB / 0.7317 GB, free: 2.164 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.427e-05/0.004047, allocations: 12.62 kB / 0.7317 GB, free: 2.152 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.004195, allocations: 84.36 kB / 0.7318 GB, free: 2.07 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.717e-05/0.004293, allocations: 39.94 kB / 0.7318 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.004319, allocations: 8.875 kB / 0.7318 GB, free: 2.023 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.771e-05/0.004407, allocations: 24 kB / 0.7318 GB, free: 2 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.004434, allocations: 17.36 kB / 0.7318 GB, free: 1.984 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.1e-05/0.004485, allocations: 23.94 kB / 0.7319 GB, free: 1.961 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001866/0.004671, allocations: 87.72 kB / 0.7319 GB, free: 1.875 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.745e-05/0.004689, allocations: 0 / 0.7319 GB, free: 1.875 MB / 0.698 GB Notification: Performance of FrontEnd: time 8.72e-07/0.00469, allocations: 0.6562 kB / 0.7319 GB, free: 1.875 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.997e-05/0.00471, allocations: 0 / 0.7319 GB, free: 1.875 MB / 0.698 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.0005675/0.005277, allocations: 326.7 kB / 0.7323 GB, free: 1.523 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.005314, allocations: 13.75 kB / 0.7323 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.005359, allocations: 12.92 kB / 0.7323 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.005461, allocations: 113.8 kB / 0.7324 GB, free: 1.363 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.005476, allocations: 4.375 kB / 0.7324 GB, free: 1.359 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.005495, allocations: 5.438 kB / 0.7324 GB, free: 1.355 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.005644, allocations: 78.89 kB / 0.7325 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.005652, allocations: 192 / 0.7325 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.005661, allocations: 1.5 kB / 0.7325 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.005667, allocations: 384 / 0.7325 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.378e-05/0.005711, allocations: 19.86 kB / 0.7325 GB, free: 1.25 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003063/0.006017, allocations: 180.8 kB / 0.7327 GB, free: 1.059 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.944e-05/0.006067, allocations: 19.45 kB / 0.7327 GB, free: 1.031 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.592e-05/0.006093, allocations: 12.95 kB / 0.7327 GB, free: 1.016 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.006116, allocations: 4.734 kB / 0.7327 GB, free: 1.012 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/0.006225, allocations: 59.33 kB / 0.7328 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.006226, allocations: 0.6875 kB / 0.7328 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001535/0.00638, allocations: 71.42 kB / 0.7328 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.00642, allocations: 51.41 kB / 0.7329 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.006502, allocations: 126.7 kB / 0.733 GB, free: 0.668 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.00652, allocations: 25.7 kB / 0.733 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.7e-05/0.006567, allocations: 92.12 kB / 0.7331 GB, free: 0.543 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.006588, allocations: 20.81 kB / 0.7331 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/0.006653, allocations: 33.69 kB / 0.7332 GB, free: 496 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.714e-05/0.00675, allocations: 318.8 kB / 0.7335 GB, free: 168 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.507e-05/0.006815, allocations: 54.12 kB / 0.7335 GB, free: 108 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.336e-05/0.006888, allocations: 73.33 kB / 0.7336 GB, free: 20 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.006995, allocations: 81.05 kB / 0.7337 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.006997, allocations: 0 / 0.7337 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001773/0.007174, allocations: 161.5 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.007218, allocations: 42.56 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.007225, allocations: 3.938 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.007237, allocations: 1.219 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.007338, allocations: 15.98 kB / 0.7339 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.007342, allocations: 0 / 0.7339 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.007454, allocations: 33.84 kB / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.007471, allocations: 4 kB / 0.7339 GB, free: 15.65 MB / 0.7136 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 7.128e-05/0.007542, allocations: 109.8 kB / 0.734 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.007559, allocations: 12.73 kB / 0.734 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.007592, allocations: 12.69 kB / 0.734 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.007594, allocations: 1.688 kB / 0.734 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.007596, allocations: 0 / 0.734 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.007601, allocations: 4 kB / 0.7341 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.385e-05/0.007695, allocations: 81.88 kB / 0.7341 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.007697, allocations: 0 / 0.7341 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.044e-05/0.007747, allocations: 16.42 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.035e-05/0.007757, allocations: 9.141 kB / 0.7342 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.007759, allocations: 0 / 0.7342 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.007765, allocations: 0 / 0.7342 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.007769, allocations: 8.469 kB / 0.7342 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.00777, allocations: 0 / 0.7342 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.822e-05/0.007868, allocations: 77.83 kB / 0.7342 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.007882, allocations: 0 / 0.7342 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.534e-05/0.007917, allocations: 12.52 kB / 0.7342 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.00796, allocations: 16.86 kB / 0.7343 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.007965, allocations: 0 / 0.7343 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.555e-05/0.007991, allocations: 25.36 kB / 0.7343 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.1e-08/0.007991, allocations: 0 / 0.7343 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001859/0.008177, allocations: 20 kB / 0.7343 GB, free: 15.21 MB / 0.7136 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.0001104/0.008287, allocations: 90.77 kB / 0.7344 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.008426, allocations: 133.9 kB / 0.7345 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.008433, allocations: 3.984 kB / 0.7345 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.716e-05/0.00846, allocations: 20.8 kB / 0.7345 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.008567, allocations: 28.89 kB / 0.7346 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.009045, allocations: 177.5 kB / 0.7347 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.942e-05/0.009074, allocations: 59.34 kB / 0.7348 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.6e-05/0.0091, allocations: 4 kB / 0.7348 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.009179, allocations: 67.34 kB / 0.7349 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of SimCode: time 6.52e-07/0.009179, allocations: 0 / 0.7349 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of Templates: time 0.003105/0.01228, allocations: 1.804 MB / 0.7366 GB, free: 12.86 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.ref.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: 4.800492041744292]