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.001862/0.001862, allocations: 84.73 kB / 19.44 MB, free: 356 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.002254/0.002254, allocations: 157.7 kB / 22.75 MB, free: 1.68 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.521/1.521, allocations: 177.1 MB / 203.1 MB, free: 5.539 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.238/3.238, allocations: 429.6 MB / 0.673 GB, free: 3.883 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.234e-06/2.234e-06, allocations: 0 / 0.8776 GB, free: 6.465 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/3.062e-05, allocations: 4.984 kB / 0.8776 GB, free: 6.461 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002232/0.002263, allocations: 0.8081 MB / 0.8784 GB, free: 5.676 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002188/0.004451, allocations: 1.316 MB / 0.8797 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.169e-05/0.004523, allocations: 4 kB / 0.8797 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.388e-05/0.004566, allocations: 11.86 kB / 0.8797 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.004672, allocations: 24.3 kB / 0.8797 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009142/0.005586, allocations: 313.6 kB / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004367/0.006023, allocations: 292 kB / 0.8803 GB, free: 3.723 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.006149, allocations: 30.27 kB / 0.8803 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.00645, allocations: 164.4 kB / 0.8805 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.006646, allocations: 91.72 kB / 0.8806 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.585e-05/0.006712, allocations: 29.59 kB / 0.8806 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.006814, allocations: 39.98 kB / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.728e-05/0.006851, allocations: 19.92 kB / 0.8807 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.006983, allocations: 87.84 kB / 0.8807 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004706/0.007454, allocations: 316.8 kB / 0.881 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.007457, allocations: 4 kB / 0.881 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.52e-07/0.007458, allocations: 0 / 0.881 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.383e-06/0.007465, allocations: 0 / 0.881 GB, free: 2.957 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.0008164/0.008282, allocations: 454.9 kB / 0.8815 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.008325, allocations: 14.78 kB / 0.8815 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.008435, allocations: 28.84 kB / 0.8815 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.008576, allocations: 123.5 kB / 0.8816 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.008612, allocations: 12.38 kB / 0.8816 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.008667, allocations: 20.38 kB / 0.8817 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.008874, allocations: 95.55 kB / 0.8818 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.008885, allocations: 4 kB / 0.8818 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.008902, allocations: 4 kB / 0.8818 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.008914, allocations: 8.688 kB / 0.8818 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.009038, allocations: 49.64 kB / 0.8818 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007429/0.009781, allocations: 380.1 kB / 0.8822 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.01005, allocations: 62.69 kB / 0.8822 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.543e-05/0.01011, allocations: 28.84 kB / 0.8823 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.01013, allocations: 5.344 kB / 0.8823 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.0104, allocations: 115.4 kB / 0.8824 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 4.588e-06/0.0104, allocations: 4 kB / 0.8824 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0004427/0.01084, allocations: 180.7 kB / 0.8826 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.0109, allocations: 59.34 kB / 0.8826 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.01108, allocations: 163.7 kB / 0.8828 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.01113, allocations: 33.7 kB / 0.8828 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.01125, allocations: 112.5 kB / 0.8829 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.01129, allocations: 27.8 kB / 0.8829 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.01145, allocations: 77.66 kB / 0.883 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.01163, allocations: 322.8 kB / 0.8833 GB, free: 460 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003047/0.01194, allocations: 185 kB / 0.8835 GB, free: 256 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.01231, allocations: 243.9 kB / 0.8837 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/0.01269, allocations: 251 kB / 0.884 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.01269, allocations: 0 / 0.884 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000863/0.01356, allocations: 0.4977 MB / 0.8845 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.01366, allocations: 113.2 kB / 0.8846 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.01367, allocations: 3.938 kB / 0.8846 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.01369, allocations: 4 kB / 0.8846 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.165e-05/0.01375, allocations: 11.94 kB / 0.8846 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.01376, allocations: 4 kB / 0.8846 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/0.01427, allocations: 83.8 kB / 0.8847 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/0.01432, allocations: 19.98 kB / 0.8847 GB, free: 14.9 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.0001666/0.01449, allocations: 137.8 kB / 0.8848 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.531e-05/0.01452, allocations: 19.91 kB / 0.8848 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.141e-05/0.01456, allocations: 12.72 kB / 0.8849 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.01457, allocations: 4 kB / 0.8849 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.01457, allocations: 0 / 0.8849 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.01458, allocations: 3.984 kB / 0.8849 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.01477, allocations: 149.2 kB / 0.885 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01477, allocations: 0 / 0.885 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.314e-05/0.01482, allocations: 19.98 kB / 0.885 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.01483, allocations: 0 / 0.885 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.01485, allocations: 4 kB / 0.885 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.01485, allocations: 3.938 kB / 0.885 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01486, allocations: 0 / 0.885 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.01514, allocations: 164.9 kB / 0.8852 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.1e-05/0.01517, allocations: 11.95 kB / 0.8852 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.01519, allocations: 7.984 kB / 0.8852 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.369e-05/0.01522, allocations: 3.938 kB / 0.8852 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.01527, allocations: 11.98 kB / 0.8852 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.01529, allocations: 4 kB / 0.8852 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001891/0.01547, allocations: 112.9 kB / 0.8853 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01547, allocations: 0 / 0.8853 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003046/0.01578, allocations: 51.95 kB / 0.8854 GB, free: 14.13 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.0002489/0.01603, allocations: 111.2 kB / 0.8855 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.00069/0.01672, allocations: 435.1 kB / 0.8859 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01672, allocations: 0 / 0.8859 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.01683, allocations: 44.34 kB / 0.8859 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.01715, allocations: 39.91 kB / 0.886 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005788/0.01773, allocations: 249.2 kB / 0.8862 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.01784, allocations: 98.22 kB / 0.8863 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.378e-05/0.01789, allocations: 16.97 kB / 0.8863 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.01793, allocations: 16.5 kB / 0.8863 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of SimCode: time 5.92e-07/0.01793, allocations: 0 / 0.8863 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of Templates: time 0.007851/0.02578, allocations: 3.031 MB / 0.8893 GB, free: 10.07 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=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/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.260725985048339]