Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.001734/0.001734, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.002095/0.002095, allocations: 162.3 kB / 23.01 MB, free: 4.602 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.489/1.489, allocations: 177.2 MB / 203.4 MB, free: 8.898 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.93/2.93, allocations: 394.2 MB / 0.6386 GB, free: 11.99 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.002133/0.002133, allocations: 71.89 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085/1.087, allocations: 181.8 MB / 1.187 GB, free: 16.27 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002079/1.089, allocations: 0.6886 MB / 1.187 GB, free: 15.85 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001807/1.091, allocations: 1.279 MB / 1.189 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.398e-05/1.091, allocations: 1.344 kB / 1.189 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.561e-05/1.091, allocations: 8.531 kB / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.029e-05/1.091, allocations: 22.5 kB / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008337/1.092, allocations: 312.4 kB / 1.189 GB, free: 14.75 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003735/1.092, allocations: 258 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/1.092, allocations: 18.8 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/1.092, allocations: 95.47 kB / 1.189 GB, free: 14.59 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/1.093, allocations: 82.22 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/1.093, allocations: 25.58 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.848e-05/1.093, allocations: 36.47 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/1.093, allocations: 13.91 kB / 1.189 GB, free: 14.55 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/1.093, allocations: 91.05 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/1.093, allocations: 215.5 kB / 1.19 GB, free: 14.44 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/1.093, allocations: 0 / 1.19 GB, free: 14.44 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.392e-06/1.093, allocations: 0 / 1.19 GB, free: 14.44 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.191e-05/1.093, allocations: 0 / 1.19 GB, free: 14.44 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.0005066/1.094, allocations: 418 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/1.094, allocations: 9.188 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.821e-05/1.094, allocations: 19.89 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.566e-05/1.094, allocations: 117.9 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/1.094, allocations: 11.52 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/1.094, allocations: 14 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/1.094, allocations: 65.28 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/1.094, allocations: 3.938 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/1.094, allocations: 1.734 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/1.094, allocations: 1.094 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.296e-05/1.094, allocations: 17.48 kB / 1.19 GB, free: 13.85 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/1.095, allocations: 320 kB / 1.191 GB, free: 13.6 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 7.024e-05/1.095, allocations: 37.89 kB / 1.191 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.258e-05/1.095, allocations: 17.39 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/1.095, allocations: 1.062 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/1.095, allocations: 101.7 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/1.095, allocations: 0 / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0003286/1.095, allocations: 151.3 kB / 1.191 GB, free: 13.42 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/1.095, allocations: 54.52 kB / 1.191 GB, free: 13.36 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/1.095, allocations: 134.1 kB / 1.191 GB, free: 13.24 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/1.096, allocations: 36.97 kB / 1.191 GB, free: 13.21 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.383e-05/1.096, allocations: 97.94 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/1.096, allocations: 24.62 kB / 1.191 GB, free: 13.1 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/1.096, allocations: 66.33 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.973e-05/1.096, allocations: 320.5 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/1.096, allocations: 184 kB / 1.192 GB, free: 12.62 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/1.096, allocations: 227 kB / 1.192 GB, free: 12.43 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/1.096, allocations: 238 kB / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.096, allocations: 1.406 kB / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006118/1.097, allocations: 475 kB / 1.193 GB, free: 11.92 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/1.097, allocations: 100.5 kB / 1.193 GB, free: 11.82 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.097, allocations: 2.859 kB / 1.193 GB, free: 11.82 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/1.097, allocations: 2.188 kB / 1.193 GB, free: 11.82 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.796e-05/1.097, allocations: 7.953 kB / 1.193 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/1.097, allocations: 2.734 kB / 1.193 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/1.098, allocations: 84.38 kB / 1.193 GB, free: 11.8 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.922e-05/1.098, allocations: 16.98 kB / 1.193 GB, free: 11.8 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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 0.0001002/1.098, allocations: 142.5 kB / 1.193 GB, free: 11.67 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/1.098, allocations: 8.844 kB / 1.193 GB, free: 11.66 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/1.098, allocations: 10.08 kB / 1.193 GB, free: 11.65 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/1.098, allocations: 1.969 kB / 1.193 GB, free: 11.65 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.098, allocations: 0.6094 kB / 1.193 GB, free: 11.65 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/1.098, allocations: 1.844 kB / 1.193 GB, free: 11.65 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/1.098, allocations: 130.9 kB / 1.193 GB, free: 11.52 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.098, allocations: 0 / 1.193 GB, free: 11.52 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.187e-05/1.098, allocations: 1.938 kB / 1.193 GB, free: 11.52 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.098, allocations: 5.344 kB / 1.193 GB, free: 11.51 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/1.098, allocations: 2.578 kB / 1.193 GB, free: 11.51 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/1.098, allocations: 1.188 kB / 1.193 GB, free: 11.51 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.098, allocations: 0.75 kB / 1.193 GB, free: 11.51 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/1.098, allocations: 152.7 kB / 1.193 GB, free: 11.41 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/1.098, allocations: 7.438 kB / 1.193 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/1.098, allocations: 6.078 kB / 1.193 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.402e-05/1.098, allocations: 6.375 kB / 1.193 GB, free: 11.39 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/1.098, allocations: 11.69 kB / 1.193 GB, free: 11.39 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/1.098, allocations: 7.938 kB / 1.193 GB, free: 11.39 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.419e-05/1.098, allocations: 98.33 kB / 1.193 GB, free: 11.31 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.098, allocations: 1.312 kB / 1.193 GB, free: 11.31 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002813/1.099, allocations: 42.72 kB / 1.193 GB, free: 11.3 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0001481/1.099, allocations: 106.7 kB / 1.194 GB, free: 11.21 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000478/1.099, allocations: 416.6 kB / 1.194 GB, free: 10.87 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.099, allocations: 4.062 kB / 1.194 GB, free: 10.86 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 6.773e-05/1.099, allocations: 36.64 kB / 1.194 GB, free: 10.85 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/1.1, allocations: 24.56 kB / 1.194 GB, free: 10.84 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/1.1, allocations: 194.9 kB / 1.194 GB, free: 10.69 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.169e-05/1.1, allocations: 78.22 kB / 1.194 GB, free: 10.61 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.251e-05/1.1, allocations: 11.92 kB / 1.194 GB, free: 10.61 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.723e-05/1.1, allocations: 14.73 kB / 1.194 GB, free: 10.6 MB / 1.076 GB Notification: Performance of SimCode: time 3.6e-07/1.1, allocations: 3.938 kB / 1.194 GB, free: 10.6 MB / 1.076 GB Notification: Performance of Templates: time 0.008614/1.109, allocations: 2.919 MB / 1.197 GB, free: 10.25 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.241775180911645]