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.001378/0.001378, allocations: 77.97 kB / 20.68 MB, free: 3.805 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.001578/0.001578, allocations: 177 kB / 24.09 MB, free: 408 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 0.8956/0.8956, allocations: 177.1 MB / 204.5 MB, free: 5.465 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.81/1.81, allocations: 359 MB / 0.6055 GB, free: 10.85 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 2.265e-06/2.265e-06, allocations: 0 / 0.7876 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.659e-05/2.886e-05, allocations: 4.422 kB / 0.7876 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001487/0.001515, allocations: 0.8002 MB / 0.7884 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.002896, allocations: 1.191 MB / 0.7896 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.644e-05/0.002942, allocations: 0 / 0.7896 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.934e-05/0.002972, allocations: 7.875 kB / 0.7896 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.501e-05/0.003047, allocations: 11.88 kB / 0.7896 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.003425, allocations: 132.8 kB / 0.7897 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000148/0.003573, allocations: 136.3 kB / 0.7898 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.945e-05/0.003652, allocations: 5.406 kB / 0.7899 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.003764, allocations: 79.8 kB / 0.7899 GB, free: 9.73 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.582e-05/0.00384, allocations: 39.89 kB / 0.79 GB, free: 9.691 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.003861, allocations: 8 kB / 0.79 GB, free: 9.684 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.003919, allocations: 32.81 kB / 0.79 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.137e-05/0.003941, allocations: 7.984 kB / 0.79 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.003978, allocations: 36.48 kB / 0.79 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.004121, allocations: 107.7 kB / 0.7902 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.004123, allocations: 0.75 kB / 0.7902 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.91e-07/0.004124, allocations: 0 / 0.7902 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.004127, allocations: 0.9062 kB / 0.7902 GB, free: 9.504 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.0004391/0.004567, allocations: 442.7 kB / 0.7906 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.004605, allocations: 12.03 kB / 0.7906 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.791e-05/0.004643, allocations: 17.92 kB / 0.7906 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.283e-05/0.004726, allocations: 112.6 kB / 0.7907 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.00474, allocations: 8.359 kB / 0.7907 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.004753, allocations: 7.531 kB / 0.7907 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.004869, allocations: 70.92 kB / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.004875, allocations: 192 / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.004883, allocations: 384 / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.004889, allocations: 4.375 kB / 0.7908 GB, free: 8.77 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.562e-05/0.004915, allocations: 11.92 kB / 0.7908 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003046/0.005219, allocations: 300.2 kB / 0.7911 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.28e-05/0.005262, allocations: 31.78 kB / 0.7911 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.704e-05/0.005279, allocations: 11.69 kB / 0.7911 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.005298, allocations: 1.656 kB / 0.7911 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.979e-05/0.005388, allocations: 73.06 kB / 0.7912 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.654e-06/0.00539, allocations: 0 / 0.7912 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.000157/0.005547, allocations: 77.58 kB / 0.7913 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.005577, allocations: 56.7 kB / 0.7913 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.898e-05/0.005666, allocations: 176.3 kB / 0.7915 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.005685, allocations: 33.7 kB / 0.7915 GB, free: 7.918 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.005739, allocations: 138.8 kB / 0.7917 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.005755, allocations: 17.5 kB / 0.7917 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.005802, allocations: 39.34 kB / 0.7917 GB, free: 7.715 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.005925, allocations: 0.4884 MB / 0.7922 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.58e-05/0.005981, allocations: 57.56 kB / 0.7923 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.565e-05/0.006047, allocations: 86.42 kB / 0.7923 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.802e-05/0.006125, allocations: 88.98 kB / 0.7924 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.006127, allocations: 0 / 0.7924 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000178/0.006305, allocations: 185.8 kB / 0.7926 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.006336, allocations: 38.17 kB / 0.7926 GB, free: 6.703 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.006341, allocations: 0 / 0.7926 GB, free: 6.703 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.006352, allocations: 4.531 kB / 0.7926 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.006424, allocations: 12.52 kB / 0.7927 GB, free: 6.688 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.006427, allocations: 1.188 kB / 0.7927 GB, free: 6.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.537e-05/0.006512, allocations: 31.86 kB / 0.7927 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.006528, allocations: 12.53 kB / 0.7927 GB, free: 6.645 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 7.472e-05/0.006602, allocations: 158 kB / 0.7928 GB, free: 6.48 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.006615, allocations: 7.953 kB / 0.7929 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.006641, allocations: 16.36 kB / 0.7929 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.006644, allocations: 5.156 kB / 0.7929 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.006646, allocations: 0 / 0.7929 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.006649, allocations: 0 / 0.7929 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.88e-05/0.006728, allocations: 110.2 kB / 0.793 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.006729, allocations: 0 / 0.793 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.601e-05/0.006765, allocations: 15.92 kB / 0.793 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.006767, allocations: 1.688 kB / 0.793 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.006773, allocations: 4 kB / 0.793 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.006774, allocations: 0 / 0.793 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.006776, allocations: 3.938 kB / 0.793 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.006883, allocations: 105.7 kB / 0.7931 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-06/0.006891, allocations: 3.984 kB / 0.7931 GB, free: 6.172 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-06/0.0069, allocations: 4 kB / 0.7931 GB, free: 6.168 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.281e-05/0.006923, allocations: 4.875 kB / 0.7931 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.006958, allocations: 11.92 kB / 0.7931 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.006965, allocations: 4 kB / 0.7931 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.573e-05/0.007011, allocations: 137.4 kB / 0.7933 GB, free: 6.016 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007011, allocations: 0 / 0.7933 GB, free: 6.016 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001435/0.007154, allocations: 27.95 kB / 0.7933 GB, free: 5.988 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.0001275/0.007281, allocations: 103.2 kB / 0.7934 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001561/0.007438, allocations: 156.2 kB / 0.7935 GB, free: 5.703 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.007439, allocations: 0 / 0.7935 GB, free: 5.703 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.324e-05/0.007473, allocations: 27.61 kB / 0.7936 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.007624, allocations: 18.08 kB / 0.7936 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002688/0.007893, allocations: 170.4 kB / 0.7937 GB, free: 5.461 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.352e-05/0.007927, allocations: 59.34 kB / 0.7938 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.505e-05/0.007952, allocations: 9.047 kB / 0.7938 GB, free: 5.375 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.088e-05/0.008043, allocations: 90.73 kB / 0.7939 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of SimCode: time 7.21e-07/0.008043, allocations: 1.406 kB / 0.7939 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of Templates: time 0.003588/0.01163, allocations: 1.886 MB / 0.7957 GB, free: 3.453 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.828970603644848]