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.00203/0.00203, allocations: 81.06 kB / 19.18 MB, free: 2.527 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.002239/0.002239, allocations: 170.7 kB / 22.46 MB, free: 5.359 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.533/1.533, allocations: 177.1 MB / 202.8 MB, free: 9.172 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.807/2.807, allocations: 377.8 MB / 0.6221 GB, free: 12.62 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.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 3.236e-06/3.236e-06, allocations: 0 / 0.9815 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.67e-05/4.993e-05, allocations: 13.31 kB / 0.9815 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002972/0.003022, allocations: 0.7652 MB / 0.9823 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002499/0.00552, allocations: 1.17 MB / 0.9834 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.064e-05/0.005591, allocations: 8 kB / 0.9834 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.961e-05/0.005631, allocations: 3.938 kB / 0.9834 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.00574, allocations: 15.8 kB / 0.9834 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007445/0.006485, allocations: 141.7 kB / 0.9836 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.00676, allocations: 119.8 kB / 0.9837 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.006888, allocations: 19.97 kB / 0.9837 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.007075, allocations: 67.89 kB / 0.9838 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.007223, allocations: 43.92 kB / 0.9838 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.442e-05/0.007267, allocations: 15.94 kB / 0.9838 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.715e-05/0.007364, allocations: 20 kB / 0.9838 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.229e-05/0.007397, allocations: 11.98 kB / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.331e-05/0.00749, allocations: 39.89 kB / 0.9839 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.007799, allocations: 147.5 kB / 0.984 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.007802, allocations: 0 / 0.984 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.51e-07/0.007803, allocations: 0 / 0.984 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.007808, allocations: 0 / 0.984 GB, free: 9.324 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008913/0.008699, allocations: 355.7 kB / 0.9844 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.00875, allocations: 8.031 kB / 0.9844 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.988e-05/0.00882, allocations: 12.89 kB / 0.9844 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.00898, allocations: 117.7 kB / 0.9845 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.009005, allocations: 8.359 kB / 0.9845 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.009042, allocations: 12.36 kB / 0.9845 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.009407, allocations: 74.2 kB / 0.9846 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.009418, allocations: 192 / 0.9846 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.00944, allocations: 8.359 kB / 0.9846 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.00945, allocations: 8.312 kB / 0.9846 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.009877, allocations: 67.86 kB / 0.9847 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005882/0.01047, allocations: 252.5 kB / 0.9849 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.01074, allocations: 46.55 kB / 0.9849 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.011, allocations: 52.84 kB / 0.985 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.01102, allocations: 0 / 0.985 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.01144, allocations: 103.2 kB / 0.9851 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.01144, allocations: 0 / 0.9851 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0008736/0.01232, allocations: 161.6 kB / 0.9853 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.01237, allocations: 51.41 kB / 0.9853 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.01253, allocations: 137.7 kB / 0.9854 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.01258, allocations: 29.7 kB / 0.9855 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.01267, allocations: 88.14 kB / 0.9855 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.01271, allocations: 27.89 kB / 0.9856 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.01282, allocations: 29.7 kB / 0.9856 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002108/0.01303, allocations: 318.8 kB / 0.9859 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/0.0134, allocations: 93.66 kB / 0.986 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.01368, allocations: 108.2 kB / 0.9861 GB, free: 7 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/0.01427, allocations: 148.1 kB / 0.9862 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.01427, allocations: 3.938 kB / 0.9862 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009315/0.0152, allocations: 248.8 kB / 0.9865 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.308e-05/0.01524, allocations: 33.7 kB / 0.9865 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.01525, allocations: 4 kB / 0.9865 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.01528, allocations: 3.984 kB / 0.9865 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.01548, allocations: 15.98 kB / 0.9865 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.01548, allocations: 176 / 0.9865 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.01583, allocations: 43.95 kB / 0.9866 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.01588, allocations: 15.97 kB / 0.9866 GB, free: 6.453 MB / 0.9356 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 0.0001459/0.01602, allocations: 117.8 kB / 0.9867 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.01605, allocations: 7.891 kB / 0.9867 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.01609, allocations: 12.44 kB / 0.9867 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.01609, allocations: 0 / 0.9867 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.0161, allocations: 0 / 0.9867 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.0161, allocations: 7.938 kB / 0.9867 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.01628, allocations: 121.3 kB / 0.9868 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01628, allocations: 0 / 0.9868 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.01641, allocations: 15.98 kB / 0.9869 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.01641, allocations: 0 / 0.9869 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.01643, allocations: 3.938 kB / 0.9869 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.01643, allocations: 0 / 0.9869 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.01644, allocations: 7.984 kB / 0.9869 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.01706, allocations: 149.4 kB / 0.987 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.749e-05/0.01708, allocations: 7.938 kB / 0.987 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.01711, allocations: 11.94 kB / 0.987 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.01725, allocations: 7.984 kB / 0.987 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.01731, allocations: 7.984 kB / 0.987 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.01732, allocations: 4 kB / 0.9871 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.86e-05/0.0174, allocations: 99.2 kB / 0.9871 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.0174, allocations: 0 / 0.9871 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000227/0.01762, allocations: 23.94 kB / 0.9872 GB, free: 5.801 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: 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.0002051/0.01783, allocations: 107.8 kB / 0.9873 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007945/0.01862, allocations: 205 kB / 0.9875 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01863, allocations: 0 / 0.9875 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.01892, allocations: 44.03 kB / 0.9875 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000234/0.01915, allocations: 23.92 kB / 0.9875 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.01969, allocations: 156.8 kB / 0.9877 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.362e-05/0.01978, allocations: 75.27 kB / 0.9878 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.761e-05/0.01984, allocations: 4 kB / 0.9878 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/0.01989, allocations: 20.5 kB / 0.9878 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of SimCode: time 4.61e-07/0.01989, allocations: 0 / 0.9878 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of Templates: time 0.006661/0.02655, allocations: 1.718 MB / 0.9895 GB, free: 3.426 MB / 0.9356 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: 8.282509952783585]