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.001962/0.001962, allocations: 77.86 kB / 19.76 MB, free: 2.031 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.002628/0.002628, allocations: 159.3 kB / 23.01 MB, free: 4.945 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.656/1.656, allocations: 177.2 MB / 203.4 MB, free: 8.988 MB / 190.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 2.775/2.775, allocations: 377.9 MB / 0.6228 GB, free: 12.56 MB / 0.5919 GB " [Timeout remaining time 177] 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.002274/0.002274, allocations: 59.91 kB / 0.982 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9624/0.9647, allocations: 176.1 MB / 1.154 GB, free: 33.31 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001728/0.9664, allocations: 0.7743 MB / 1.155 GB, free: 32.83 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.9675, allocations: 1.167 MB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.838e-05/0.9676, allocations: 2.5 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.9676, allocations: 3.938 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.817e-05/0.9676, allocations: 14.62 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.9681, allocations: 135.2 kB / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.9682, allocations: 135 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 9.187e-05/0.9683, allocations: 13.72 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.589e-05/0.9684, allocations: 52.73 kB / 1.156 GB, free: 31.81 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.302e-05/0.9685, allocations: 45.45 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.9685, allocations: 11.16 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.339e-05/0.9686, allocations: 34.5 kB / 1.156 GB, free: 31.79 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.192e-05/0.9686, allocations: 10.62 kB / 1.156 GB, free: 31.78 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.58e-05/0.9687, allocations: 41.73 kB / 1.156 GB, free: 31.75 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.9688, allocations: 124.8 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9688, allocations: 2.781 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.462e-06/0.9688, allocations: 0 / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.9688, allocations: 0 / 1.156 GB, free: 31.71 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.0005543/0.9694, allocations: 345.8 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.9694, allocations: 10.38 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.589e-05/0.9695, allocations: 9.891 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.557e-05/0.9695, allocations: 118.8 kB / 1.157 GB, free: 31.25 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.9695, allocations: 7 kB / 1.157 GB, free: 31.25 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.9696, allocations: 12.12 kB / 1.157 GB, free: 31.25 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.9698, allocations: 78.73 kB / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.9698, allocations: 192 / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.9698, allocations: 6.5 kB / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.9698, allocations: 0 / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.9701, allocations: 70.92 kB / 1.157 GB, free: 31.19 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003299/0.9704, allocations: 261 kB / 1.157 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.9706, allocations: 57.25 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.9708, allocations: 40.72 kB / 1.157 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.9708, allocations: 3.125 kB / 1.157 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.971, allocations: 96.77 kB / 1.158 GB, free: 30.84 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.971, allocations: 0 / 1.158 GB, free: 30.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0005705/0.9716, allocations: 168 kB / 1.158 GB, free: 30.78 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.303e-05/0.9716, allocations: 51.41 kB / 1.158 GB, free: 30.72 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.411e-05/0.9717, allocations: 121.2 kB / 1.158 GB, free: 30.61 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.9717, allocations: 32.48 kB / 1.158 GB, free: 30.57 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.9718, allocations: 98.2 kB / 1.158 GB, free: 30.48 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.9718, allocations: 14.53 kB / 1.158 GB, free: 30.47 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.9718, allocations: 38.08 kB / 1.158 GB, free: 30.45 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.477e-05/0.9719, allocations: 313.7 kB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.9721, allocations: 92.36 kB / 1.158 GB, free: 30.09 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.9723, allocations: 113.9 kB / 1.159 GB, free: 30.01 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.9726, allocations: 151.1 kB / 1.159 GB, free: 29.92 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.9726, allocations: 3.938 kB / 1.159 GB, free: 29.92 MB / 1.076 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005054/0.9732, allocations: 249.8 kB / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.9732, allocations: 34.88 kB / 1.159 GB, free: 29.75 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.9732, allocations: 0 / 1.159 GB, free: 29.75 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.9732, allocations: 3.312 kB / 1.159 GB, free: 29.75 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.9733, allocations: 18.22 kB / 1.159 GB, free: 29.75 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.9733, allocations: 0 / 1.159 GB, free: 29.75 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.9736, allocations: 40.69 kB / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.9736, allocations: 7.094 kB / 1.159 GB, free: 29.74 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 6.246e-05/0.9736, allocations: 127.1 kB / 1.159 GB, free: 29.61 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.9737, allocations: 6.703 kB / 1.159 GB, free: 29.61 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.9737, allocations: 11.72 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.9737, allocations: 2.781 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.9737, allocations: 0 / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.9737, allocations: 0 / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.398e-05/0.9738, allocations: 130.4 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9738, allocations: 0 / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.928e-05/0.9739, allocations: 15.09 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.9739, allocations: 7.469 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.9739, allocations: 3.25 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.9739, allocations: 0 / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.9739, allocations: 4 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/0.9742, allocations: 151.9 kB / 1.159 GB, free: 29.36 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-06/0.9742, allocations: 6.953 kB / 1.159 GB, free: 29.35 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.9742, allocations: 2.781 kB / 1.159 GB, free: 29.35 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.328e-05/0.9743, allocations: 20.39 kB / 1.159 GB, free: 29.34 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.9744, allocations: 10.17 kB / 1.159 GB, free: 29.34 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.9744, allocations: 2.969 kB / 1.159 GB, free: 29.34 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.049e-05/0.9744, allocations: 94.89 kB / 1.16 GB, free: 29.26 MB / 1.076 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9744, allocations: 0 / 1.16 GB, free: 29.26 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002187/0.9746, allocations: 27.72 kB / 1.16 GB, free: 29.25 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.0001134/0.9747, allocations: 103.8 kB / 1.16 GB, free: 29.16 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004431/0.9752, allocations: 207.5 kB / 1.16 GB, free: 29.04 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.9752, allocations: 0 / 1.16 GB, free: 29.04 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.9754, allocations: 49.06 kB / 1.16 GB, free: 29.03 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.9756, allocations: 25.08 kB / 1.16 GB, free: 29.01 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002918/0.9759, allocations: 167 kB / 1.16 GB, free: 28.87 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.436e-05/0.9759, allocations: 69.17 kB / 1.16 GB, free: 28.8 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.112e-05/0.9759, allocations: 9.031 kB / 1.16 GB, free: 28.8 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.615e-05/0.976, allocations: 11.34 kB / 1.16 GB, free: 28.79 MB / 1.076 GB Notification: Performance of SimCode: time 3.1e-07/0.976, allocations: 0 / 1.16 GB, free: 28.79 MB / 1.076 GB Notification: Performance of Templates: time 0.004004/0.98, allocations: 1.722 MB / 1.162 GB, free: 28.59 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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.15882724802941]