Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.0008709/0.0008709, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001031/0.001031, allocations: 181.9 kB / 23.22 MB, free: 1.348 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 0.9205/0.9205, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.801/1.801, allocations: 377.8 MB / 0.6228 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] 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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.9823 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.87e-05, allocations: 4.953 kB / 0.9823 GB, free: 2.023 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001304/0.001333, allocations: 0.7729 MB / 0.983 GB, free: 1.25 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001103/0.002436, allocations: 1.174 MB / 0.9842 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.385e-05/0.00248, allocations: 0 / 0.9842 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.838e-05/0.002508, allocations: 7.875 kB / 0.9842 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.482e-05/0.002573, allocations: 15.81 kB / 0.9842 GB, free: 40 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.002963, allocations: 145.3 kB / 0.9843 GB, free: 15.9 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.003118, allocations: 131.7 kB / 0.9845 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.709e-05/0.003215, allocations: 4 kB / 0.9845 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.003325, allocations: 75.86 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.003409, allocations: 43.88 kB / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.003434, allocations: 8 kB / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.781e-05/0.003491, allocations: 27.98 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.003513, allocations: 7.984 kB / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.001e-05/0.003563, allocations: 39.91 kB / 0.9847 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.003738, allocations: 143.6 kB / 0.9848 GB, free: 15.43 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.00374, allocations: 0 / 0.9848 GB, free: 15.43 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.263e-06/0.003742, allocations: 0 / 0.9848 GB, free: 15.43 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.003747, allocations: 0 / 0.9848 GB, free: 15.43 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005348/0.004281, allocations: 351.7 kB / 0.9851 GB, free: 15.05 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.004319, allocations: 8.031 kB / 0.9851 GB, free: 15.04 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.004365, allocations: 12.89 kB / 0.9851 GB, free: 15.03 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.234e-05/0.004448, allocations: 117.6 kB / 0.9853 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.004462, allocations: 4.375 kB / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.004479, allocations: 12.38 kB / 0.9853 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.004647, allocations: 82.19 kB / 0.9854 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.004655, allocations: 192 / 0.9854 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.004664, allocations: 384 / 0.9854 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.004668, allocations: 384 / 0.9854 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.00482, allocations: 75.84 kB / 0.9854 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003609/0.005181, allocations: 256.5 kB / 0.9857 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.005292, allocations: 50.55 kB / 0.9857 GB, free: 14.37 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.918e-05/0.005371, allocations: 44.91 kB / 0.9858 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.00539, allocations: 0 / 0.9858 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.005556, allocations: 111.2 kB / 0.9859 GB, free: 14.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 7.81e-07/0.005557, allocations: 4 kB / 0.9859 GB, free: 14.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0005008/0.006058, allocations: 153.6 kB / 0.986 GB, free: 14.04 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.00609, allocations: 59.41 kB / 0.9861 GB, free: 13.97 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.009e-05/0.00617, allocations: 130 kB / 0.9862 GB, free: 13.83 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.006187, allocations: 25.7 kB / 0.9862 GB, free: 13.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/0.006229, allocations: 88.14 kB / 0.9863 GB, free: 13.71 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.006247, allocations: 23.84 kB / 0.9863 GB, free: 13.69 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.006296, allocations: 33.69 kB / 0.9864 GB, free: 13.65 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.006369, allocations: 318.8 kB / 0.9867 GB, free: 13.33 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.006499, allocations: 93.58 kB / 0.9868 GB, free: 13.23 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.006627, allocations: 116.2 kB / 0.9869 GB, free: 13.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.006818, allocations: 156.2 kB / 0.987 GB, free: 12.93 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.00682, allocations: 0 / 0.987 GB, free: 12.93 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003028/0.007123, allocations: 248.8 kB / 0.9873 GB, free: 12.67 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.007149, allocations: 37.77 kB / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.007154, allocations: 0 / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.007165, allocations: 0 / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.29e-05/0.007248, allocations: 23.91 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.007253, allocations: 0 / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.007363, allocations: 39.95 kB / 0.9874 GB, free: 12.57 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.007379, allocations: 4 kB / 0.9874 GB, free: 12.56 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 6.59e-05/0.007445, allocations: 125.8 kB / 0.9875 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.098e-06/0.007454, allocations: 11.89 kB / 0.9875 GB, free: 12.42 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.007476, allocations: 8.438 kB / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.007478, allocations: 0 / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.007482, allocations: 0 / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.007485, allocations: 0 / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.133e-05/0.007556, allocations: 121.3 kB / 0.9876 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.007557, allocations: 0 / 0.9876 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.332e-05/0.0076, allocations: 19.97 kB / 0.9876 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.007601, allocations: 0 / 0.9876 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.007611, allocations: 11.94 kB / 0.9876 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.007611, allocations: 0 / 0.9876 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.007613, allocations: 3.938 kB / 0.9876 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.007819, allocations: 149.3 kB / 0.9878 GB, free: 12.06 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-06/0.007828, allocations: 7.953 kB / 0.9878 GB, free: 12.05 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.007842, allocations: 11.92 kB / 0.9878 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.555e-05/0.007878, allocations: 11.98 kB / 0.9878 GB, free: 12.03 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.007913, allocations: 7.984 kB / 0.9878 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.00792, allocations: 4 kB / 0.9878 GB, free: 12.02 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.499e-05/0.007955, allocations: 95.27 kB / 0.9879 GB, free: 11.93 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007955, allocations: 4 kB / 0.9879 GB, free: 11.92 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001526/0.008107, allocations: 23.94 kB / 0.9879 GB, free: 11.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001142/0.008222, allocations: 95.78 kB / 0.988 GB, free: 11.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.00851, allocations: 208.9 kB / 0.9882 GB, free: 11.57 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.008512, allocations: 3.938 kB / 0.9882 GB, free: 11.57 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.297e-05/0.008605, allocations: 55.88 kB / 0.9883 GB, free: 11.52 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.008756, allocations: 16.02 kB / 0.9883 GB, free: 11.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002847/0.00904, allocations: 186.5 kB / 0.9885 GB, free: 11.29 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.071e-05/0.009081, allocations: 79.39 kB / 0.9886 GB, free: 11.19 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.009108, allocations: 12.5 kB / 0.9886 GB, free: 11.18 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/0.009109, allocations: 0 / 0.9886 GB, free: 11.18 MB / 0.948 GB Notification: Performance of Templates: time 0.002003/0.01111, allocations: 1.342 MB / 0.9899 GB, free: 9.852 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.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: 6.54309190902859]