Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.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.002096/0.002096, allocations: 110 kB / 18.93 MB, free: 2.945 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.002075/0.002075, allocations: 186.5 kB / 22.23 MB, free: 5.16 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.521/1.521, 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 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.664/3.664, allocations: 496 MB / 0.7835 GB, free: 33.69 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 70.11 kB / 1.138 GB, free: 33.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4207, allocations: 173.6 MB / 1.307 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002687/0.4234, allocations: 0.8429 MB / 1.308 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002019/0.4254, allocations: 1.295 MB / 1.309 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.562e-05/0.4255, allocations: 4 kB / 1.309 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.039e-05/0.4256, allocations: 11.86 kB / 1.309 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.4257, allocations: 23.8 kB / 1.309 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008831/0.4265, allocations: 326.3 kB / 1.31 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.4269, allocations: 287.5 kB / 1.31 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.4271, allocations: 33.59 kB / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.4272, allocations: 119.7 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.4274, allocations: 111.7 kB / 1.31 GB, free: 14.77 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.77e-05/0.4275, allocations: 32 kB / 1.31 GB, free: 14.74 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.4276, allocations: 39.98 kB / 1.31 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.364e-05/0.4276, allocations: 19.92 kB / 1.31 GB, free: 14.68 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.4278, allocations: 107.6 kB / 1.31 GB, free: 14.57 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.4281, allocations: 263.1 kB / 1.311 GB, free: 14.32 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4281, allocations: 3.938 kB / 1.311 GB, free: 14.31 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4281, allocations: 4 kB / 1.311 GB, free: 14.31 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.4281, allocations: 0 / 1.311 GB, free: 14.31 MB / 1.014 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.0007821/0.4289, allocations: 454.9 kB / 1.311 GB, free: 13.82 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.429, allocations: 8.031 kB / 1.311 GB, free: 13.81 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.367e-05/0.429, allocations: 24.89 kB / 1.311 GB, free: 13.79 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.4292, allocations: 130.9 kB / 1.311 GB, free: 13.63 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.4292, allocations: 20.11 kB / 1.311 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.4293, allocations: 20 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/0.4295, allocations: 89.64 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4295, allocations: 0 / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.4295, allocations: 0 / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4295, allocations: 4 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.4296, allocations: 47.92 kB / 1.311 GB, free: 13.45 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008194/0.4305, allocations: 475.2 kB / 1.312 GB, free: 12.94 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002639/0.4307, allocations: 70.61 kB / 1.312 GB, free: 12.86 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.768e-05/0.4308, allocations: 20.92 kB / 1.312 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.4308, allocations: 11.92 kB / 1.312 GB, free: 12.83 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.4311, allocations: 119.2 kB / 1.312 GB, free: 12.7 MB / 1.014 GB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.4311, allocations: 0 / 1.312 GB, free: 12.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=14): time 0.0004117/0.4315, allocations: 169.1 kB / 1.312 GB, free: 12.53 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.4315, allocations: 59.39 kB / 1.312 GB, free: 12.46 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.4317, allocations: 164.5 kB / 1.313 GB, free: 12.29 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.4318, allocations: 33.7 kB / 1.313 GB, free: 12.25 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.4319, allocations: 112.1 kB / 1.313 GB, free: 12.14 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.4319, allocations: 31.73 kB / 1.313 GB, free: 12.11 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.4321, allocations: 81.66 kB / 1.313 GB, free: 12.02 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4322, allocations: 322.8 kB / 1.313 GB, free: 11.7 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.4324, allocations: 91.95 kB / 1.313 GB, free: 11.61 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.4327, allocations: 142.9 kB / 1.313 GB, free: 11.45 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.433, allocations: 256.9 kB / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.433, allocations: 0 / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006971/0.4337, allocations: 416.1 kB / 1.314 GB, free: 10.73 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/0.4338, allocations: 101.1 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4338, allocations: 4 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.4339, allocations: 4 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-05/0.4339, allocations: 11.98 kB / 1.314 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.4339, allocations: 4 kB / 1.314 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.4344, allocations: 87.95 kB / 1.314 GB, free: 10.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.4344, allocations: 15.98 kB / 1.314 GB, free: 10.49 MB / 1.014 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.0001518/0.4346, allocations: 147 kB / 1.314 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.4346, allocations: 11.89 kB / 1.314 GB, free: 10.32 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.935e-05/0.4347, allocations: 16.77 kB / 1.314 GB, free: 10.31 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4347, allocations: 0 / 1.314 GB, free: 10.31 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4347, allocations: 0 / 1.314 GB, free: 10.31 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4347, allocations: 8 kB / 1.314 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.4349, allocations: 188.6 kB / 1.315 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.4349, allocations: 0 / 1.315 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.141e-05/0.435, allocations: 15.92 kB / 1.315 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.435, allocations: 7.938 kB / 1.315 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.435, allocations: 0 / 1.315 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.435, allocations: 0 / 1.315 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.435, allocations: 0 / 1.315 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.4352, allocations: 168.9 kB / 1.315 GB, free: 9.867 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.498e-05/0.4353, allocations: 11.89 kB / 1.315 GB, free: 9.855 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.4353, allocations: 11.98 kB / 1.315 GB, free: 9.844 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.956e-05/0.4353, allocations: 0 / 1.315 GB, free: 9.844 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.4354, allocations: 11.98 kB / 1.315 GB, free: 9.832 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.4354, allocations: 4 kB / 1.315 GB, free: 9.828 MB / 1.014 GB Notification: Performance of sorting global known variables: time 9.952e-05/0.4355, allocations: 122.9 kB / 1.315 GB, free: 9.711 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.4355, allocations: 0 / 1.315 GB, free: 9.711 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002764/0.4358, allocations: 55.89 kB / 1.315 GB, free: 9.656 MB / 1.014 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.0001932/0.436, allocations: 111.2 kB / 1.315 GB, free: 9.539 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005614/0.4365, allocations: 342.1 kB / 1.315 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4365, allocations: 0 / 1.315 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 9.722e-05/0.4366, allocations: 43.91 kB / 1.315 GB, free: 9.125 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.4369, allocations: 32.34 kB / 1.315 GB, free: 9.094 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005383/0.4375, allocations: 247.4 kB / 1.316 GB, free: 8.828 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.4379, allocations: 0.7084 MB / 1.316 GB, free: 8.094 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.324e-05/0.4379, allocations: 16.64 kB / 1.316 GB, free: 8.078 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.4379, allocations: 11.44 kB / 1.316 GB, free: 8.066 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/0.4379, allocations: 4 kB / 1.316 GB, free: 8.062 MB / 1.014 GB Notification: Performance of Templates: time 0.00694/0.4449, allocations: 2.858 MB / 1.319 GB, free: 5.242 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.920969455502927]