Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009645/0.0009645, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0009927/0.0009927, allocations: 181 kB / 23.36 MB, free: 1.133 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.9334/0.9334, allocations: 177.1 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.351/2.351, allocations: 438.8 MB / 0.6827 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.656e-05, allocations: 6.25 kB / 0.8387 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.005723/0.00574, allocations: 0.7841 MB / 0.8394 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.006981, allocations: 1.209 MB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.106e-05/0.007022, allocations: 0 / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.007049, allocations: 3.938 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.007123, allocations: 15.86 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.00751, allocations: 135.5 kB / 0.8407 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.007668, allocations: 131.7 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.157e-05/0.00774, allocations: 15.98 kB / 0.8409 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.007854, allocations: 67.88 kB / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.062e-05/0.007934, allocations: 39.94 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.007957, allocations: 8 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.563e-05/0.008013, allocations: 31.97 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.048e-05/0.008034, allocations: 7.938 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.714e-05/0.008081, allocations: 43.91 kB / 0.8411 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.008227, allocations: 103.7 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.764e-06/0.008228, allocations: 0 / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.71e-07/0.008229, allocations: 0 / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.976e-06/0.008232, allocations: 0 / 0.8412 GB, free: 11.55 MB / 0.8073 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.003404/0.01164, allocations: 322.3 kB / 0.8415 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.961e-05/0.01167, allocations: 8.031 kB / 0.8415 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.661e-05/0.0117, allocations: 12.92 kB / 0.8415 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.02e-05/0.01178, allocations: 113.7 kB / 0.8416 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.01179, allocations: 4.375 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.01181, allocations: 8.375 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.01193, allocations: 70.92 kB / 0.8417 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.01193, allocations: 192 / 0.8417 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.01194, allocations: 384 / 0.8417 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.01195, allocations: 4.375 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.101e-05/0.01198, allocations: 19.91 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002447/0.01222, allocations: 180.2 kB / 0.8419 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.01227, allocations: 22.66 kB / 0.8419 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.01229, allocations: 20.92 kB / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.0123, allocations: 0 / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.741e-05/0.01238, allocations: 63.34 kB / 0.842 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 8.22e-07/0.01238, allocations: 0 / 0.842 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001239/0.0125, allocations: 65.55 kB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.01253, allocations: 55.41 kB / 0.8421 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.689e-05/0.0126, allocations: 126.7 kB / 0.8422 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.01262, allocations: 33.7 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.01265, allocations: 88.12 kB / 0.8423 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.01267, allocations: 15.89 kB / 0.8424 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.326e-05/0.01272, allocations: 29.69 kB / 0.8424 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.532e-05/0.0128, allocations: 318.8 kB / 0.8427 GB, free: 9.84 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.534e-05/0.01286, allocations: 53.69 kB / 0.8427 GB, free: 9.781 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.298e-05/0.01292, allocations: 72.23 kB / 0.8428 GB, free: 9.695 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.81e-05/0.013, allocations: 80.19 kB / 0.8429 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.013, allocations: 4 kB / 0.8429 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001533/0.01315, allocations: 161 kB / 0.843 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.01318, allocations: 37.69 kB / 0.8431 GB, free: 9.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01318, allocations: 3.938 kB / 0.8431 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.01319, allocations: 0 / 0.8431 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.01326, allocations: 19.92 kB / 0.8431 GB, free: 9.355 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-06/0.01326, allocations: 4 kB / 0.8431 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.674e-05/0.01336, allocations: 31.81 kB / 0.8431 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.01338, allocations: 12.05 kB / 0.8431 GB, free: 9.309 MB / 0.8073 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.22e-05/0.01344, allocations: 113.8 kB / 0.8433 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.118e-05/0.01345, allocations: 4 kB / 0.8433 GB, free: 9.184 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.01347, allocations: 16.36 kB / 0.8433 GB, free: 9.172 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.01348, allocations: 4 kB / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.01348, allocations: 0 / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.01348, allocations: 0 / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.135e-05/0.01355, allocations: 77.88 kB / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.01355, allocations: 0 / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.442e-05/0.01359, allocations: 11.98 kB / 0.8434 GB, free: 9.062 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.01359, allocations: 4 kB / 0.8434 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-06/0.01359, allocations: 320 / 0.8434 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.01359, allocations: 0 / 0.8434 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.0136, allocations: 7.938 kB / 0.8434 GB, free: 9.051 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.617e-05/0.01367, allocations: 81.05 kB / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-06/0.01368, allocations: 7.953 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.01369, allocations: 0 / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.776e-05/0.01372, allocations: 4 kB / 0.8435 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.01375, allocations: 15.92 kB / 0.8435 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.01376, allocations: 0 / 0.8435 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.888e-05/0.01378, allocations: 24.33 kB / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.01378, allocations: 8 kB / 0.8435 GB, free: 8.895 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001753/0.01395, allocations: 24 kB / 0.8435 GB, free: 8.871 MB / 0.8073 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 9.254e-05/0.01404, allocations: 80.41 kB / 0.8436 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.003155/0.0172, allocations: 137.9 kB / 0.8437 GB, free: 8.625 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.0172, allocations: 0 / 0.8437 GB, free: 8.625 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.537e-05/0.01724, allocations: 24.78 kB / 0.8438 GB, free: 8.598 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001058/0.01734, allocations: 21.83 kB / 0.8438 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002454/0.01759, allocations: 156.4 kB / 0.8439 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.024e-05/0.01762, allocations: 59.36 kB / 0.844 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.54e-05/0.01764, allocations: 3.984 kB / 0.844 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.697e-05/0.01773, allocations: 67.36 kB / 0.8441 GB, free: 8.25 MB / 0.8073 GB Notification: Performance of SimCode: time 4.1e-07/0.01773, allocations: 0 / 0.8441 GB, free: 8.25 MB / 0.8073 GB Notification: Performance of Templates: time 0.006688/0.02442, allocations: 1.761 MB / 0.8458 GB, free: 6.523 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.362467591185123]