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.001007/0.001007, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001474/0.001474, allocations: 161 kB / 23.82 MB, free: 0.75 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.9571/0.9571, allocations: 177.2 MB / 204.2 MB, free: 5.598 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.767/1.767, allocations: 359 MB / 0.6052 GB, free: 11.01 MB / 0.573 GB " [Timeout remaining time 178] 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 1.684e-06/1.684e-06, allocations: 0 / 0.7872 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.966e-05, allocations: 5.188 kB / 0.7872 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001304/0.001324, allocations: 0.7955 MB / 0.788 GB, free: 11.61 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.002485, allocations: 1.195 MB / 0.7891 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.946e-05/0.002534, allocations: 5.031 kB / 0.7891 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.135e-05/0.002566, allocations: 3.938 kB / 0.7891 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.8e-05/0.002644, allocations: 16.48 kB / 0.7891 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.003137, allocations: 136.5 kB / 0.7893 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000176/0.003313, allocations: 124.8 kB / 0.7894 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.878e-05/0.003402, allocations: 15.98 kB / 0.7894 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.003514, allocations: 71.88 kB / 0.7895 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.11e-05/0.003595, allocations: 36.72 kB / 0.7895 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.003621, allocations: 12 kB / 0.7895 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.747e-05/0.003679, allocations: 29.14 kB / 0.7896 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.306e-05/0.003702, allocations: 11.98 kB / 0.7896 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.274e-05/0.003755, allocations: 35.91 kB / 0.7896 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.00391, allocations: 105.2 kB / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.003912, allocations: 0 / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.172e-06/0.003913, allocations: 0 / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.003918, allocations: 4 kB / 0.7897 GB, free: 9.809 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.0004769/0.004395, allocations: 445.1 kB / 0.7901 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.004432, allocations: 8.031 kB / 0.7901 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.004488, allocations: 12.89 kB / 0.7901 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.673e-05/0.004575, allocations: 122.9 kB / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.004589, allocations: 8.312 kB / 0.7903 GB, free: 9.16 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.004606, allocations: 8.375 kB / 0.7903 GB, free: 9.152 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.004757, allocations: 70.92 kB / 0.7903 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.004763, allocations: 1.281 kB / 0.7903 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.004774, allocations: 384 / 0.7903 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.004781, allocations: 384 / 0.7904 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.82e-05/0.00482, allocations: 16.53 kB / 0.7904 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.005167, allocations: 308.2 kB / 0.7907 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.393e-05/0.005221, allocations: 38.98 kB / 0.7907 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.776e-05/0.005248, allocations: 16.53 kB / 0.7907 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.005264, allocations: 0 / 0.7907 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.182e-05/0.005356, allocations: 77.66 kB / 0.7908 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.005357, allocations: 0.625 kB / 0.7908 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001988/0.005556, allocations: 81.58 kB / 0.7909 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.005586, allocations: 52.06 kB / 0.7909 GB, free: 8.414 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.27e-05/0.005669, allocations: 181.9 kB / 0.7911 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.005687, allocations: 31.08 kB / 0.7911 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.497e-05/0.005742, allocations: 142.9 kB / 0.7913 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.005759, allocations: 7.906 kB / 0.7913 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/0.005812, allocations: 45.02 kB / 0.7913 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.005915, allocations: 496.1 kB / 0.7918 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.14e-05/0.005987, allocations: 57.94 kB / 0.7918 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.075e-05/0.006057, allocations: 88.73 kB / 0.7919 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.592e-05/0.006153, allocations: 102.3 kB / 0.792 GB, free: 7.199 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.006155, allocations: 0 / 0.792 GB, free: 7.199 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001933/0.006348, allocations: 197.4 kB / 0.7922 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.006378, allocations: 33.7 kB / 0.7922 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.006383, allocations: 1.656 kB / 0.7922 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.006394, allocations: 0 / 0.7922 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.518e-05/0.006469, allocations: 11.98 kB / 0.7922 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.006475, allocations: 7.938 kB / 0.7923 GB, free: 6.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.112e-05/0.006566, allocations: 38.05 kB / 0.7923 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.00658, allocations: 4 kB / 0.7923 GB, free: 6.891 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 6.706e-05/0.006647, allocations: 160.6 kB / 0.7924 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.006661, allocations: 16.42 kB / 0.7925 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.006683, allocations: 12.42 kB / 0.7925 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.006684, allocations: 0.7188 kB / 0.7925 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.006688, allocations: 0 / 0.7925 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.006691, allocations: 0.5 kB / 0.7925 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.006802, allocations: 134.2 kB / 0.7926 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.006803, allocations: 0 / 0.7926 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.124e-05/0.006835, allocations: 11.98 kB / 0.7926 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.006836, allocations: 0 / 0.7926 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.006846, allocations: 9.062 kB / 0.7926 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.006847, allocations: 0 / 0.7926 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.006848, allocations: 0 / 0.7926 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.006949, allocations: 109.1 kB / 0.7927 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.767e-06/0.006958, allocations: 11.98 kB / 0.7927 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.006969, allocations: 4.5 kB / 0.7927 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.362e-05/0.006993, allocations: 11.98 kB / 0.7928 GB, free: 6.359 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.007034, allocations: 8.828 kB / 0.7928 GB, free: 6.352 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.007039, allocations: 0 / 0.7928 GB, free: 6.352 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.007079, allocations: 138.8 kB / 0.7929 GB, free: 6.219 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.00708, allocations: 0 / 0.7929 GB, free: 6.219 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001448/0.007224, allocations: 27.95 kB / 0.7929 GB, free: 6.191 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.0001027/0.007327, allocations: 103.4 kB / 0.793 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001764/0.007503, allocations: 157.3 kB / 0.7932 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.007505, allocations: 2.469 kB / 0.7932 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.007545, allocations: 27.67 kB / 0.7932 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.007694, allocations: 15.98 kB / 0.7932 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002935/0.007988, allocations: 175.6 kB / 0.7934 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.086e-05/0.008018, allocations: 63.34 kB / 0.7934 GB, free: 5.574 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.296e-05/0.008041, allocations: 4.531 kB / 0.7934 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.894e-05/0.00807, allocations: 13.56 kB / 0.7935 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of SimCode: time 8.61e-07/0.008071, allocations: 0 / 0.7935 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of Templates: time 0.00342/0.01149, allocations: 1.875 MB / 0.7953 GB, free: 3.746 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: 4.96505734603852]