Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.001316/0.001316, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001485/0.001485, allocations: 216.9 kB / 23.01 MB, free: 4.605 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.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 8.062 MB / 206.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 3.274/3.274, allocations: 0.505 GB / 0.8108 GB, free: 22.08 MB / 0.6231 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.002264/0.002264, allocations: 63.02 kB / 1.178 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3705, allocations: 180.2 MB / 1.354 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002046/0.3725, allocations: 0.8306 MB / 1.355 GB, free: 7.105 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002082/0.3746, allocations: 1.326 MB / 1.356 GB, free: 5.766 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.237e-05/0.3747, allocations: 0 / 1.356 GB, free: 5.766 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.314e-05/0.3747, allocations: 7.875 kB / 1.356 GB, free: 5.758 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.3748, allocations: 27.8 kB / 1.356 GB, free: 5.73 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3759, allocations: 325.4 kB / 1.357 GB, free: 5.422 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004849/0.3764, allocations: 295.5 kB / 1.357 GB, free: 5.133 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.3766, allocations: 29.62 kB / 1.357 GB, free: 5.102 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.3767, allocations: 115.7 kB / 1.357 GB, free: 4.988 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.377, allocations: 115.7 kB / 1.357 GB, free: 4.875 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.607e-05/0.377, allocations: 31.94 kB / 1.357 GB, free: 4.844 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.3772, allocations: 39.98 kB / 1.357 GB, free: 4.805 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.3772, allocations: 23.92 kB / 1.357 GB, free: 4.781 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.3774, allocations: 103.6 kB / 1.357 GB, free: 4.68 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.3778, allocations: 267.1 kB / 1.358 GB, free: 4.418 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3778, allocations: 0 / 1.358 GB, free: 4.418 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3778, allocations: 0 / 1.358 GB, free: 4.418 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.565e-06/0.3778, allocations: 3.938 kB / 1.358 GB, free: 4.414 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007304/0.3785, allocations: 462.9 kB / 1.358 GB, free: 3.914 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3785, allocations: 16.03 kB / 1.358 GB, free: 3.898 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.374e-05/0.3786, allocations: 20.84 kB / 1.358 GB, free: 3.879 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3788, allocations: 123 kB / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.3788, allocations: 24.06 kB / 1.358 GB, free: 3.711 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.3788, allocations: 20 kB / 1.358 GB, free: 3.691 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.379, allocations: 85.66 kB / 1.358 GB, free: 3.602 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.379, allocations: 3.938 kB / 1.358 GB, free: 3.598 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3791, allocations: 0 / 1.358 GB, free: 3.598 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3791, allocations: 4 kB / 1.358 GB, free: 3.594 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.3792, allocations: 47.97 kB / 1.358 GB, free: 3.547 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/0.3799, allocations: 479.4 kB / 1.359 GB, free: 3.035 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.3802, allocations: 58.62 kB / 1.359 GB, free: 2.969 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.3802, allocations: 28.91 kB / 1.359 GB, free: 2.938 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.3802, allocations: 3.984 kB / 1.359 GB, free: 2.934 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.3805, allocations: 119.8 kB / 1.359 GB, free: 2.805 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3805, allocations: 3.938 kB / 1.359 GB, free: 2.801 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003649/0.3809, allocations: 172.2 kB / 1.359 GB, free: 2.629 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.3809, allocations: 55.41 kB / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.3811, allocations: 166.7 kB / 1.359 GB, free: 2.391 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.3811, allocations: 37.7 kB / 1.359 GB, free: 2.348 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.139e-05/0.3812, allocations: 112.1 kB / 1.359 GB, free: 2.234 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.3812, allocations: 31.8 kB / 1.36 GB, free: 2.203 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.3814, allocations: 77.67 kB / 1.36 GB, free: 2.121 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3815, allocations: 318.8 kB / 1.36 GB, free: 1.801 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.3817, allocations: 103.9 kB / 1.36 GB, free: 1.699 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.3819, allocations: 143.2 kB / 1.36 GB, free: 1.539 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.3823, allocations: 248.7 kB / 1.36 GB, free: 1.258 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3823, allocations: 0 / 1.36 GB, free: 1.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006428/0.3829, allocations: 414.4 kB / 1.361 GB, free: 0.8281 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.383, allocations: 103 kB / 1.361 GB, free: 0.7109 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.383, allocations: 4 kB / 1.361 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.383, allocations: 0 / 1.361 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.913e-05/0.3831, allocations: 12 kB / 1.361 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.3831, allocations: 7.875 kB / 1.361 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004387/0.3835, allocations: 91.94 kB / 1.361 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.3836, allocations: 27.92 kB / 1.361 GB, free: 0.5703 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001318/0.3837, allocations: 133.8 kB / 1.361 GB, free: 440 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.3837, allocations: 15.89 kB / 1.361 GB, free: 424 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.292e-05/0.3837, allocations: 8.781 kB / 1.361 GB, free: 412 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3838, allocations: 4 kB / 1.361 GB, free: 408 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3838, allocations: 4 kB / 1.361 GB, free: 404 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3838, allocations: 3.984 kB / 1.361 GB, free: 400 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.384, allocations: 192.6 kB / 1.361 GB, free: 164 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.384, allocations: 0 / 1.361 GB, free: 164 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.655e-05/0.384, allocations: 15.88 kB / 1.361 GB, free: 148 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.384, allocations: 0 / 1.361 GB, free: 148 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.384, allocations: 3.984 kB / 1.361 GB, free: 144 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.384, allocations: 8 kB / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.384, allocations: 0 / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.3843, allocations: 157 kB / 1.362 GB, free: 15.96 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.3843, allocations: 19.84 kB / 1.362 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.3843, allocations: 0 / 1.362 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.009e-05/0.3843, allocations: 0 / 1.362 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.3844, allocations: 19.97 kB / 1.362 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.3844, allocations: 4 kB / 1.362 GB, free: 15.92 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.393e-05/0.3845, allocations: 115.2 kB / 1.362 GB, free: 15.8 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3845, allocations: 0 / 1.362 GB, free: 15.8 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002717/0.3847, allocations: 51.94 kB / 1.362 GB, free: 15.75 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001527/0.3849, allocations: 112.7 kB / 1.362 GB, free: 15.64 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004892/0.3854, allocations: 342.1 kB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3854, allocations: 0 / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.693e-05/0.3855, allocations: 47.92 kB / 1.362 GB, free: 15.22 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.3857, allocations: 30.52 kB / 1.362 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004963/0.3862, allocations: 275 kB / 1.362 GB, free: 14.89 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.3866, allocations: 0.7084 MB / 1.363 GB, free: 14.16 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.3866, allocations: 23.38 kB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3866, allocations: 0 / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of Templates: time 0.004414/0.391, allocations: 2.286 MB / 1.365 GB, free: 11.86 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.461041688016849]