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.001037/0.001037, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001185/0.001185, allocations: 173 kB / 24.28 MB, free: 276 kB / 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.06/1.06, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.898/1.898, allocations: 359 MB / 0.6055 GB, free: 10.97 MB / 0.573 GB " [Timeout remaining time 177] 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 3.146e-06/3.146e-06, allocations: 0 / 0.7872 GB, free: 12.73 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.283e-05/3.598e-05, allocations: 2.312 kB / 0.7872 GB, free: 12.72 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002165/0.002201, allocations: 0.7918 MB / 0.7879 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.003887, allocations: 1.195 MB / 0.7891 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.366e-05/0.003951, allocations: 5.062 kB / 0.7891 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.154e-05/0.003993, allocations: 11.86 kB / 0.7891 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.293e-05/0.004086, allocations: 9.5 kB / 0.7891 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.004624, allocations: 135.5 kB / 0.7893 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.004839, allocations: 128.4 kB / 0.7894 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.004955, allocations: 19.97 kB / 0.7894 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.005108, allocations: 68.86 kB / 0.7895 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.005217, allocations: 39.92 kB / 0.7895 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.005247, allocations: 12 kB / 0.7895 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.805e-05/0.005325, allocations: 26.3 kB / 0.7895 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.005357, allocations: 11.94 kB / 0.7895 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.692e-05/0.005424, allocations: 39.95 kB / 0.7896 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.005647, allocations: 99.73 kB / 0.7897 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.005651, allocations: 0 / 0.7897 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.733e-06/0.005653, allocations: 0 / 0.7897 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.005658, allocations: 5.906 kB / 0.7897 GB, free: 10.15 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.0006131/0.006271, allocations: 434 kB / 0.7901 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.006317, allocations: 8.031 kB / 0.7901 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.82e-05/0.006396, allocations: 24.81 kB / 0.7901 GB, free: 9.648 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.006511, allocations: 114.1 kB / 0.7902 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.006529, allocations: 4.375 kB / 0.7902 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.006554, allocations: 8.375 kB / 0.7903 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.006748, allocations: 74.86 kB / 0.7903 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.006756, allocations: 0.8125 kB / 0.7903 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.006769, allocations: 5.281 kB / 0.7903 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.006778, allocations: 384 / 0.7903 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.369e-05/0.006832, allocations: 15.92 kB / 0.7903 GB, free: 9.398 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004777/0.00731, allocations: 316.7 kB / 0.7906 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.292e-05/0.007383, allocations: 35.06 kB / 0.7907 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.007419, allocations: 17.06 kB / 0.7907 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.00744, allocations: 0 / 0.7907 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001329/0.007572, allocations: 77 kB / 0.7908 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.774e-06/0.007574, allocations: 0 / 0.7908 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0002522/0.007826, allocations: 83.38 kB / 0.7909 GB, free: 8.812 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.007875, allocations: 55.39 kB / 0.7909 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.007997, allocations: 179.3 kB / 0.7911 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.008021, allocations: 29.7 kB / 0.7911 GB, free: 8.52 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.008097, allocations: 144 kB / 0.7912 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.008118, allocations: 7.906 kB / 0.7912 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.008207, allocations: 43.36 kB / 0.7913 GB, free: 8.316 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.00835, allocations: 0.4903 MB / 0.7918 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.008461, allocations: 61.62 kB / 0.7918 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.008574, allocations: 84.73 kB / 0.7919 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.00871, allocations: 92.81 kB / 0.792 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.008713, allocations: 2.594 kB / 0.792 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003107/0.009024, allocations: 200.9 kB / 0.7922 GB, free: 7.324 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.009067, allocations: 37.7 kB / 0.7922 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.009072, allocations: 0 / 0.7922 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.009088, allocations: 0 / 0.7922 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.00921, allocations: 12.7 kB / 0.7922 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.009218, allocations: 4 kB / 0.7922 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.009356, allocations: 34.05 kB / 0.7923 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.009377, allocations: 4 kB / 0.7923 GB, free: 7.23 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.000105/0.009482, allocations: 164.6 kB / 0.7924 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.009508, allocations: 15.89 kB / 0.7925 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.009539, allocations: 9.281 kB / 0.7925 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.009541, allocations: 0 / 0.7925 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.009546, allocations: 0.8438 kB / 0.7925 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.009551, allocations: 3.938 kB / 0.7925 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.009681, allocations: 132.6 kB / 0.7926 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.009683, allocations: 1.281 kB / 0.7926 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.23e-05/0.009745, allocations: 11.94 kB / 0.7926 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.009748, allocations: 0 / 0.7926 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.009762, allocations: 12.77 kB / 0.7926 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.009764, allocations: 320 / 0.7926 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.009765, allocations: 1.125 kB / 0.7926 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.009933, allocations: 108.4 kB / 0.7927 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.403e-05/0.009947, allocations: 8 kB / 0.7927 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.009966, allocations: 5.312 kB / 0.7927 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.003e-05/0.01001, allocations: 7.984 kB / 0.7927 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.01005, allocations: 11.98 kB / 0.7928 GB, free: 6.688 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.01006, allocations: 1.438 kB / 0.7928 GB, free: 6.688 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.037e-05/0.01012, allocations: 137.7 kB / 0.7929 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.01012, allocations: 0 / 0.7929 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003093/0.01043, allocations: 23.95 kB / 0.7929 GB, free: 6.531 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.0001844/0.01062, allocations: 110.1 kB / 0.793 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0004533/0.01107, allocations: 148.8 kB / 0.7932 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.01107, allocations: 0 / 0.7932 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.228e-05/0.01113, allocations: 27.61 kB / 0.7932 GB, free: 6.215 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.01137, allocations: 20.52 kB / 0.7932 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004059/0.01178, allocations: 167.1 kB / 0.7934 GB, free: 6.004 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.175e-05/0.01182, allocations: 65.06 kB / 0.7934 GB, free: 5.922 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.607e-05/0.01185, allocations: 4 kB / 0.7934 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.01189, allocations: 13.84 kB / 0.7934 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of SimCode: time 9.82e-07/0.01189, allocations: 0 / 0.7934 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of Templates: time 0.004917/0.01681, allocations: 1.736 MB / 0.7951 GB, free: 4.227 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.5005226351786405]