Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 114.2 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 189.4 kB / 22.23 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.703/2.703, allocations: 443.4 MB / 0.7321 GB, free: 12.23 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002759/0.002759, allocations: 71.89 kB / 1.062 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.053/1.056, allocations: 160.8 MB / 1.219 GB, free: 3.613 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002484/1.058, allocations: 0.8005 MB / 1.219 GB, free: 3.008 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001795/1.06, allocations: 1.161 MB / 1.22 GB, free: 2.07 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.422e-05/1.06, allocations: 1.156 kB / 1.22 GB, free: 2.07 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.579e-05/1.06, allocations: 3.938 kB / 1.22 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.995e-05/1.06, allocations: 22.22 kB / 1.22 GB, free: 2.047 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005416/1.061, allocations: 149.7 kB / 1.221 GB, free: 1.941 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002084/1.061, allocations: 121.8 kB / 1.221 GB, free: 1.875 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.488e-05/1.061, allocations: 13.02 kB / 1.221 GB, free: 1.867 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/1.061, allocations: 53.2 kB / 1.221 GB, free: 1.836 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/1.061, allocations: 53.94 kB / 1.221 GB, free: 1.797 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/1.061, allocations: 11.19 kB / 1.221 GB, free: 1.797 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.899e-05/1.061, allocations: 25.25 kB / 1.221 GB, free: 1.789 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.33e-05/1.061, allocations: 18.47 kB / 1.221 GB, free: 1.773 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.171e-05/1.061, allocations: 43.81 kB / 1.221 GB, free: 1.742 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/1.062, allocations: 120.7 kB / 1.221 GB, free: 1.656 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/1.062, allocations: 4.938 kB / 1.221 GB, free: 1.652 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.512e-06/1.062, allocations: 0 / 1.221 GB, free: 1.652 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.612e-06/1.062, allocations: 0 / 1.221 GB, free: 1.652 MB / 0.92 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.0008014/1.062, allocations: 429 kB / 1.221 GB, free: 1.215 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.062, allocations: 8.406 kB / 1.221 GB, free: 1.215 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/1.063, allocations: 10.98 kB / 1.221 GB, free: 1.211 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/1.063, allocations: 179.5 kB / 1.222 GB, free: 1 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/1.063, allocations: 7.688 kB / 1.222 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/1.063, allocations: 6.656 kB / 1.222 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/1.063, allocations: 83.45 kB / 1.222 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/1.063, allocations: 192 / 1.222 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/1.063, allocations: 5.188 kB / 1.222 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/1.063, allocations: 0 / 1.222 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/1.063, allocations: 70.39 kB / 1.222 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005321/1.064, allocations: 326.8 kB / 1.222 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/1.064, allocations: 54.8 kB / 1.222 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/1.064, allocations: 45.19 kB / 1.222 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/1.064, allocations: 1.188 kB / 1.222 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/1.065, allocations: 91.31 kB / 1.222 GB, free: 424 kB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 3.467e-06/1.065, allocations: 3.984 kB / 1.222 GB, free: 420 kB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0005985/1.065, allocations: 171.3 kB / 1.222 GB, free: 320 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/1.065, allocations: 52.53 kB / 1.223 GB, free: 256 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/1.065, allocations: 124.4 kB / 1.223 GB, free: 140 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/1.065, allocations: 28.27 kB / 1.223 GB, free: 108 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/1.065, allocations: 96.34 kB / 1.223 GB, free: 12 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/1.065, allocations: 26.08 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/1.066, allocations: 39.14 kB / 1.223 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001496/1.066, allocations: 315.7 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/1.066, allocations: 65.12 kB / 1.223 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/1.066, allocations: 80.55 kB / 1.223 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/1.067, allocations: 146.3 kB / 1.223 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.067, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005359/1.067, allocations: 217.9 kB / 1.224 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.667e-05/1.067, allocations: 39.95 kB / 1.224 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/1.067, allocations: 5.016 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/1.067, allocations: 5.188 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/1.067, allocations: 14.52 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/1.067, allocations: 2.156 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/1.067, allocations: 37.58 kB / 1.224 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/1.068, allocations: 10.08 kB / 1.224 GB, free: 15.25 MB / 0.9356 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.0001169/1.068, allocations: 131 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.819e-05/1.068, allocations: 7.234 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/1.068, allocations: 9.469 kB / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/1.068, allocations: 1.062 kB / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.068, allocations: 1.188 kB / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/1.068, allocations: 0 / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/1.068, allocations: 190.2 kB / 1.224 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/1.068, allocations: 4 kB / 1.224 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/1.068, allocations: 14.8 kB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.068, allocations: 1.062 kB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/1.068, allocations: 1.094 kB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.068, allocations: 0 / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/1.068, allocations: 1.094 kB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/1.068, allocations: 156.3 kB / 1.224 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/1.068, allocations: 91.11 kB / 1.224 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/1.068, allocations: 1.219 kB / 1.224 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/1.069, allocations: 11.08 kB / 1.224 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.628e-05/1.069, allocations: 10.33 kB / 1.224 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/1.069, allocations: 2.188 kB / 1.224 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.501e-05/1.069, allocations: 93.11 kB / 1.224 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/1.069, allocations: 4 kB / 1.224 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002321/1.069, allocations: 31.75 kB / 1.224 GB, free: 14.54 MB / 0.9356 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.0001831/1.069, allocations: 100.1 kB / 1.225 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004999/1.07, allocations: 170.2 kB / 1.225 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.07, allocations: 1.312 kB / 1.225 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/1.07, allocations: 53.3 kB / 1.225 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/1.07, allocations: 18.98 kB / 1.225 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000431/1.07, allocations: 163.2 kB / 1.225 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/1.071, allocations: 0.6923 MB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.695e-05/1.071, allocations: 3.75 kB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/1.071, allocations: 14.69 kB / 1.226 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of SimCode: time 2.9e-07/1.071, allocations: 0 / 1.226 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of Templates: time 0.005027/1.076, allocations: 1.597 MB / 1.227 GB, free: 12.62 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.38299922272563]