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.002414/0.002414, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.002155/0.002155, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.633/1.633, allocations: 177.1 MB / 203.1 MB, free: 5.543 MB / 186.7 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.498/3.498, allocations: 429.5 MB / 0.6729 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 2.956e-06/2.956e-06, allocations: 0 / 0.8775 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.097e-05/3.392e-05, allocations: 5.125 kB / 0.8775 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002205/0.002238, allocations: 0.8285 MB / 0.8783 GB, free: 5.844 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002027/0.004266, allocations: 1.31 MB / 0.8796 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.506e-05/0.004341, allocations: 5.188 kB / 0.8796 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.172e-05/0.004383, allocations: 7.875 kB / 0.8796 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.004494, allocations: 30.12 kB / 0.8796 GB, free: 4.484 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008323/0.005327, allocations: 302.6 kB / 0.8799 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.005724, allocations: 299.4 kB / 0.8802 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.005842, allocations: 32.44 kB / 0.8802 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.006071, allocations: 155.8 kB / 0.8803 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.006262, allocations: 91.77 kB / 0.8804 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 7.435e-05/0.006336, allocations: 24 kB / 0.8805 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.00644, allocations: 40 kB / 0.8805 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.96e-05/0.00648, allocations: 23.91 kB / 0.8805 GB, free: 3.539 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.006613, allocations: 83.86 kB / 0.8806 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004321/0.007045, allocations: 315.1 kB / 0.8809 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.007048, allocations: 5.656 kB / 0.8809 GB, free: 3.145 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.007049, allocations: 4 kB / 0.8809 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.93e-06/0.007054, allocations: 0 / 0.8809 GB, free: 3.141 MB / 0.8386 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.0008069/0.007861, allocations: 0.5477 MB / 0.8814 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.007897, allocations: 8.656 kB / 0.8815 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.008002, allocations: 36.83 kB / 0.8815 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.008147, allocations: 123.1 kB / 0.8816 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.008181, allocations: 12.38 kB / 0.8816 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.867e-05/0.00824, allocations: 21.09 kB / 0.8816 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.008436, allocations: 99.53 kB / 0.8817 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.008446, allocations: 4 kB / 0.8817 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.008466, allocations: 8 kB / 0.8817 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.00847, allocations: 0 / 0.8817 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.008589, allocations: 51.95 kB / 0.8818 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007502/0.009339, allocations: 447.3 kB / 0.8822 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.009587, allocations: 79.09 kB / 0.8823 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.127e-05/0.009648, allocations: 27.75 kB / 0.8823 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.009666, allocations: 4 kB / 0.8823 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.009876, allocations: 125 kB / 0.8824 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.009877, allocations: 4 kB / 0.8824 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0006548/0.01053, allocations: 176.2 kB / 0.8826 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.01059, allocations: 59.41 kB / 0.8827 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.0108, allocations: 236 kB / 0.8829 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/0.01085, allocations: 37.7 kB / 0.8829 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.01097, allocations: 155.3 kB / 0.8831 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.01101, allocations: 35.8 kB / 0.8831 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.01119, allocations: 87.27 kB / 0.8832 GB, free: 0.5977 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002665/0.01145, allocations: 0.5001 MB / 0.8837 GB, free: 88 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003407/0.01179, allocations: 213 kB / 0.8839 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.01219, allocations: 289.3 kB / 0.8842 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.01258, allocations: 289.4 kB / 0.8844 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.01258, allocations: 0 / 0.8844 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008513/0.01343, allocations: 0.5348 MB / 0.885 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.01352, allocations: 101.1 kB / 0.8851 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.01353, allocations: 4 kB / 0.8851 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.01355, allocations: 3.984 kB / 0.8851 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.35e-05/0.01361, allocations: 15.94 kB / 0.8851 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.01362, allocations: 4 kB / 0.8851 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.014, allocations: 67.83 kB / 0.8852 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.01406, allocations: 19.98 kB / 0.8852 GB, free: 14.39 MB / 0.8542 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.0001641/0.01423, allocations: 180.6 kB / 0.8853 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.01426, allocations: 19.84 kB / 0.8854 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.0143, allocations: 24.7 kB / 0.8854 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.0143, allocations: 0 / 0.8854 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.01431, allocations: 0 / 0.8854 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.01431, allocations: 4 kB / 0.8854 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.01451, allocations: 168.5 kB / 0.8856 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.01451, allocations: 0 / 0.8856 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.01455, allocations: 8 kB / 0.8856 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.01456, allocations: 8 kB / 0.8856 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.01456, allocations: 0 / 0.8856 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.01457, allocations: 3.938 kB / 0.8856 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.01457, allocations: 3.984 kB / 0.8856 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000283/0.01485, allocations: 188.2 kB / 0.8858 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.01488, allocations: 15.89 kB / 0.8858 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.01489, allocations: 0 / 0.8858 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.01494, allocations: 7.938 kB / 0.8858 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.01499, allocations: 11.98 kB / 0.8858 GB, free: 13.69 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.015, allocations: 7.984 kB / 0.8858 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001146/0.01511, allocations: 152.3 kB / 0.8859 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9e-08/0.01511, allocations: 4 kB / 0.8859 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002679/0.01538, allocations: 51.95 kB / 0.886 GB, free: 13.48 MB / 0.8542 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.000176/0.01556, allocations: 107.2 kB / 0.8861 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007105/0.01627, allocations: 0.5066 MB / 0.8866 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01627, allocations: 0 / 0.8866 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.01637, allocations: 59.55 kB / 0.8866 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.01665, allocations: 32.28 kB / 0.8867 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005219/0.01717, allocations: 258.8 kB / 0.8869 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.991e-05/0.01727, allocations: 98.23 kB / 0.887 GB, free: 12.31 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.759e-05/0.01731, allocations: 8.969 kB / 0.887 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/0.01735, allocations: 20.5 kB / 0.887 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of SimCode: time 8.32e-07/0.01735, allocations: 0 / 0.887 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of Templates: time 0.007623/0.02497, allocations: 3.036 MB / 0.89 GB, free: 9.32 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] 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/jenkins/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: 8.750047816080041]