Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002518/0.002518, allocations: 87.69 kB / 20.24 MB, free: 4.184 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.002873/0.002873, allocations: 157.3 kB / 23.55 MB, free: 0.875 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.58/1.58, allocations: 177.1 MB / 203.9 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.942/2.942, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 0.7864 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.05e-05/3.296e-05, allocations: 2.969 kB / 0.7864 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002098/0.002131, allocations: 0.7859 MB / 0.7872 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.003912, allocations: 1.179 MB / 0.7884 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.469e-05/0.003957, allocations: 0 / 0.7884 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.003987, allocations: 8.969 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.418e-05/0.004071, allocations: 15.86 kB / 0.7884 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.004565, allocations: 132.7 kB / 0.7885 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.004784, allocations: 132.7 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.466e-05/0.004869, allocations: 15.98 kB / 0.7887 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.005015, allocations: 69.84 kB / 0.7887 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.005121, allocations: 39.94 kB / 0.7888 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.005155, allocations: 12 kB / 0.7888 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.719e-05/0.005233, allocations: 23.98 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.00526, allocations: 11.92 kB / 0.7888 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.005338, allocations: 35.97 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.005599, allocations: 140.2 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.005601, allocations: 0.875 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.61e-07/0.005602, allocations: 0 / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.005606, allocations: 3.938 kB / 0.789 GB, free: 10.16 MB / 0.7448 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.0006854/0.006291, allocations: 442.9 kB / 0.7894 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.006327, allocations: 8.031 kB / 0.7894 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.713e-05/0.006394, allocations: 18.3 kB / 0.7894 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.006532, allocations: 116.5 kB / 0.7895 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.006549, allocations: 4.375 kB / 0.7895 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.006576, allocations: 8.375 kB / 0.7896 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.006796, allocations: 71.22 kB / 0.7896 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.006804, allocations: 192 / 0.7896 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.006817, allocations: 5.938 kB / 0.7896 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.006821, allocations: 384 / 0.7896 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.007022, allocations: 51.84 kB / 0.7897 GB, free: 9.375 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/0.007548, allocations: 317.3 kB / 0.79 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.007706, allocations: 47.05 kB / 0.79 GB, free: 8.973 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.007818, allocations: 32.45 kB / 0.7901 GB, free: 8.938 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.007843, allocations: 4 kB / 0.7901 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.008063, allocations: 101.8 kB / 0.7902 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.874e-06/0.008065, allocations: 1.562 kB / 0.7902 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0005247/0.008589, allocations: 133.6 kB / 0.7903 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.008638, allocations: 55.41 kB / 0.7903 GB, free: 8.617 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.008803, allocations: 187.7 kB / 0.7905 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.008833, allocations: 29.7 kB / 0.7905 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.008938, allocations: 146.8 kB / 0.7907 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.008961, allocations: 11.91 kB / 0.7907 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.071e-05/0.009051, allocations: 45.78 kB / 0.7907 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0004715/0.009523, allocations: 0.4922 MB / 0.7912 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.009729, allocations: 89.66 kB / 0.7913 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.00995, allocations: 112.7 kB / 0.7914 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.01025, allocations: 138.1 kB / 0.7915 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01025, allocations: 7.938 kB / 0.7916 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005199/0.01077, allocations: 239 kB / 0.7918 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.01081, allocations: 37.69 kB / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.01082, allocations: 0 / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.01083, allocations: 4 kB / 0.7918 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.01094, allocations: 12.52 kB / 0.7918 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.01094, allocations: 1.312 kB / 0.7918 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.01113, allocations: 31.92 kB / 0.7919 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.01115, allocations: 9.156 kB / 0.7919 GB, free: 6.938 MB / 0.7448 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.0001315/0.01128, allocations: 160.6 kB / 0.792 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.01131, allocations: 9.312 kB / 0.792 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.01135, allocations: 16.42 kB / 0.7921 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01135, allocations: 0 / 0.7921 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.01135, allocations: 0 / 0.7921 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.01135, allocations: 5.688 kB / 0.7921 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.01151, allocations: 144.5 kB / 0.7922 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.01151, allocations: 3.938 kB / 0.7922 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.004e-05/0.01159, allocations: 11.98 kB / 0.7922 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.01159, allocations: 0.9062 kB / 0.7922 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.01161, allocations: 7.938 kB / 0.7922 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01161, allocations: 0 / 0.7922 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01161, allocations: 3.438 kB / 0.7922 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.01193, allocations: 140.8 kB / 0.7924 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.01195, allocations: 11.94 kB / 0.7924 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.01197, allocations: 3.938 kB / 0.7924 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.146e-05/0.01203, allocations: 12 kB / 0.7924 GB, free: 6.359 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.01208, allocations: 11.98 kB / 0.7924 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.01208, allocations: 0 / 0.7924 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.422e-05/0.01218, allocations: 141.2 kB / 0.7925 GB, free: 6.211 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01218, allocations: 3.938 kB / 0.7925 GB, free: 6.207 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002277/0.0124, allocations: 25.94 kB / 0.7926 GB, free: 6.184 MB / 0.7448 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.0001706/0.01258, allocations: 99.23 kB / 0.7927 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0004594/0.01303, allocations: 214.9 kB / 0.7929 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01304, allocations: 0 / 0.7929 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.01321, allocations: 47.61 kB / 0.7929 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.01345, allocations: 20.52 kB / 0.7929 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003924/0.01384, allocations: 170.8 kB / 0.7931 GB, free: 5.578 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.676e-05/0.01392, allocations: 76.11 kB / 0.7932 GB, free: 5.484 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.511e-05/0.01396, allocations: 5.281 kB / 0.7932 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.01399, allocations: 17.09 kB / 0.7932 GB, free: 5.465 MB / 0.7448 GB Notification: Performance of SimCode: time 4.31e-07/0.014, allocations: 0 / 0.7932 GB, free: 5.465 MB / 0.7448 GB Notification: Performance of Templates: time 0.00547/0.01947, allocations: 1.722 MB / 0.7949 GB, free: 3.812 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.090190113056451]