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.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.001333/0.001333, allocations: 74.58 kB / 19.18 MB, free: 2.539 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.001477/0.001477, allocations: 169.5 kB / 22.46 MB, free: 5.348 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.512/1.512, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.933/2.933, allocations: 377.8 MB / 0.6221 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_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 4.268e-06/4.268e-06, allocations: 0 / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.523e-05/4.949e-05, allocations: 6.219 kB / 0.9814 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002435/0.002484, allocations: 0.8006 MB / 0.9822 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002038/0.004522, allocations: 1.326 MB / 0.9835 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.452e-05/0.004587, allocations: 4 kB / 0.9835 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.185e-05/0.004638, allocations: 11.81 kB / 0.9835 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.004758, allocations: 15.8 kB / 0.9835 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009805/0.005739, allocations: 321.9 kB / 0.9839 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.006116, allocations: 291.5 kB / 0.9841 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.006266, allocations: 41.48 kB / 0.9842 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002391/0.006505, allocations: 155.8 kB / 0.9843 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.006708, allocations: 91.77 kB / 0.9844 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.225e-05/0.00677, allocations: 24 kB / 0.9844 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.006878, allocations: 39.98 kB / 0.9845 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.311e-05/0.006922, allocations: 31.84 kB / 0.9845 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.007064, allocations: 83.86 kB / 0.9846 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004373/0.007502, allocations: 315.1 kB / 0.9849 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.007506, allocations: 0 / 0.9849 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.482e-06/0.007508, allocations: 3.938 kB / 0.9849 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.007513, allocations: 0 / 0.9849 GB, free: 8.434 MB / 0.9356 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.0007453/0.008259, allocations: 462.8 kB / 0.9853 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.008295, allocations: 12.03 kB / 0.9853 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/0.008376, allocations: 20.88 kB / 0.9854 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.008509, allocations: 126.1 kB / 0.9855 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.008541, allocations: 12.38 kB / 0.9855 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.00859, allocations: 20.38 kB / 0.9855 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.00883, allocations: 93.58 kB / 0.9856 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.008841, allocations: 4 kB / 0.9856 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.008856, allocations: 0 / 0.9856 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.008866, allocations: 4 kB / 0.9856 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.009005, allocations: 43.98 kB / 0.9856 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008428/0.009848, allocations: 384.1 kB / 0.986 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.01016, allocations: 70.55 kB / 0.9861 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.775e-05/0.01023, allocations: 28.91 kB / 0.9861 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.01024, allocations: 0 / 0.9861 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.01056, allocations: 121 kB / 0.9862 GB, free: 6.93 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.01056, allocations: 4 kB / 0.9862 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.000498/0.01106, allocations: 170.2 kB / 0.9864 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.01114, allocations: 55.41 kB / 0.9864 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.01139, allocations: 163.5 kB / 0.9866 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.873e-05/0.01145, allocations: 33.7 kB / 0.9866 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.01158, allocations: 108.5 kB / 0.9867 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.01164, allocations: 35.78 kB / 0.9868 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.0118, allocations: 77.67 kB / 0.9868 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002315/0.01203, allocations: 322.8 kB / 0.9872 GB, free: 5.93 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.01235, allocations: 185 kB / 0.9873 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.01282, allocations: 237.5 kB / 0.9876 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.01319, allocations: 255 kB / 0.9878 GB, free: 5.172 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01319, allocations: 0 / 0.9878 GB, free: 5.172 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007655/0.01396, allocations: 0.4904 MB / 0.9883 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.01406, allocations: 105 kB / 0.9884 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.01406, allocations: 0 / 0.9884 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.01408, allocations: 4 kB / 0.9884 GB, free: 4.516 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.098e-05/0.01414, allocations: 11.94 kB / 0.9884 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.01415, allocations: 7.984 kB / 0.9884 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/0.01464, allocations: 87.83 kB / 0.9885 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.01468, allocations: 15.98 kB / 0.9885 GB, free: 4.395 MB / 0.9356 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.0001524/0.01484, allocations: 142.3 kB / 0.9886 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.01486, allocations: 7.953 kB / 0.9886 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.0149, allocations: 20.7 kB / 0.9887 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.0149, allocations: 0 / 0.9887 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.01491, allocations: 0 / 0.9887 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01491, allocations: 3.938 kB / 0.9887 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.01508, allocations: 149.2 kB / 0.9888 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01508, allocations: 4 kB / 0.9888 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.01513, allocations: 11.98 kB / 0.9888 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.01513, allocations: 0 / 0.9888 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.01514, allocations: 8 kB / 0.9888 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.01515, allocations: 3.938 kB / 0.9888 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01515, allocations: 0 / 0.9888 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.01539, allocations: 165.4 kB / 0.989 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.721e-05/0.01541, allocations: 7.953 kB / 0.989 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.01545, allocations: 3.984 kB / 0.989 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.496e-05/0.01548, allocations: 7.938 kB / 0.989 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.01552, allocations: 7.984 kB / 0.989 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.01553, allocations: 12 kB / 0.989 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.74e-05/0.01561, allocations: 109.5 kB / 0.9891 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.01561, allocations: 0 / 0.9891 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002752/0.01589, allocations: 51.95 kB / 0.9892 GB, free: 3.637 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: 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.0001783/0.01606, allocations: 109.8 kB / 0.9893 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005867/0.01665, allocations: 440.8 kB / 0.9897 GB, free: 3.039 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01665, allocations: 384 / 0.9897 GB, free: 3.039 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.337e-05/0.01674, allocations: 47.97 kB / 0.9898 GB, free: 2.992 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.01701, allocations: 40 kB / 0.9898 GB, free: 2.953 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005396/0.01755, allocations: 238.2 kB / 0.99 GB, free: 2.695 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.01766, allocations: 98.27 kB / 0.9901 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.023e-05/0.0177, allocations: 8.984 kB / 0.9901 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.214e-05/0.01774, allocations: 20.48 kB / 0.9901 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of SimCode: time 5.91e-07/0.01774, allocations: 0 / 0.9901 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of Templates: time 0.006884/0.02463, allocations: 3.015 MB / 0.9931 GB, free: 15.61 MB / 0.9512 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: 8.542212009429932]