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.0007793/0.0007793, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008276/0.0008276, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8957/0.8957, allocations: 177.1 MB / 203.5 MB, free: 5.715 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.671/1.671, allocations: 359 MB / 0.6044 GB, free: 11.07 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.222e-06/1.222e-06, allocations: 0 / 0.9518 GB, free: 2.906 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.549e-05/1.671e-05, allocations: 6.219 kB / 0.9518 GB, free: 2.898 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001236/0.001253, allocations: 0.7729 MB / 0.9526 GB, free: 2.117 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.002268, allocations: 1.171 MB / 0.9537 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.201e-05/0.00231, allocations: 0 / 0.9537 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.002337, allocations: 3.938 kB / 0.9537 GB, free: 0.9297 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.002402, allocations: 27.78 kB / 0.9537 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.002781, allocations: 139.2 kB / 0.9539 GB, free: 0.7695 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.002922, allocations: 131.7 kB / 0.954 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.41e-05/0.003006, allocations: 8 kB / 0.954 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 9.969e-05/0.003106, allocations: 71.88 kB / 0.9541 GB, free: 0.5625 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.345e-05/0.00318, allocations: 47.86 kB / 0.9541 GB, free: 0.5156 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.003198, allocations: 8 kB / 0.9541 GB, free: 0.5078 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.003247, allocations: 20 kB / 0.9541 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.957e-05/0.003266, allocations: 15.98 kB / 0.9541 GB, free: 484 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.49e-05/0.003311, allocations: 39.89 kB / 0.9542 GB, free: 444 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.003584, allocations: 143.6 kB / 0.9543 GB, free: 300 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.003586, allocations: 0 / 0.9543 GB, free: 300 kB / 0.9011 GB Notification: Performance of FrontEnd: time 6.11e-07/0.003586, allocations: 3.938 kB / 0.9543 GB, free: 296 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.00359, allocations: 0 / 0.9543 GB, free: 296 kB / 0.9011 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.0004576/0.004047, allocations: 347.7 kB / 0.9547 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.004079, allocations: 8.031 kB / 0.9547 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.004121, allocations: 16.88 kB / 0.9547 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.995e-05/0.004191, allocations: 121.7 kB / 0.9548 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.004203, allocations: 4.375 kB / 0.9548 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.004218, allocations: 4.375 kB / 0.9548 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.00437, allocations: 78.14 kB / 0.9549 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.004378, allocations: 4.188 kB / 0.9549 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.004389, allocations: 8.359 kB / 0.9549 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.004393, allocations: 384 / 0.9549 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.004539, allocations: 79.8 kB / 0.955 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.004845, allocations: 244.5 kB / 0.9552 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.004947, allocations: 54.55 kB / 0.9553 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.731e-05/0.005024, allocations: 40.91 kB / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.005041, allocations: 0 / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.0052, allocations: 111.3 kB / 0.9554 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.005201, allocations: 4 kB / 0.9554 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of matching and sorting (n=6): time 0.0003297/0.005531, allocations: 157.5 kB / 0.9556 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.00556, allocations: 51.41 kB / 0.9556 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.635e-05/0.005626, allocations: 128.2 kB / 0.9557 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.005643, allocations: 33.7 kB / 0.9558 GB, free: 14.66 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.623e-05/0.005689, allocations: 92.09 kB / 0.9558 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.005709, allocations: 23.83 kB / 0.9559 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.005753, allocations: 33.64 kB / 0.9559 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.00582, allocations: 318.8 kB / 0.9562 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.005946, allocations: 93.58 kB / 0.9563 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.006067, allocations: 112.2 kB / 0.9564 GB, free: 13.96 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.00625, allocations: 140.2 kB / 0.9565 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.006252, allocations: 0 / 0.9565 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002936/0.006545, allocations: 256.9 kB / 0.9568 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.006571, allocations: 37.7 kB / 0.9568 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.006575, allocations: 3.938 kB / 0.9568 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.006585, allocations: 0 / 0.9568 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.595e-05/0.006661, allocations: 20.28 kB / 0.9568 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.006666, allocations: 0 / 0.9568 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.006774, allocations: 43.95 kB / 0.9569 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.006787, allocations: 4 kB / 0.9569 GB, free: 13.43 MB / 0.9167 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.175e-05/0.006849, allocations: 121.8 kB / 0.957 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.006859, allocations: 7.891 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.124e-05/0.00688, allocations: 12.44 kB / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.006881, allocations: 0 / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.006885, allocations: 0 / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.006887, allocations: 0 / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.005e-05/0.006957, allocations: 125.3 kB / 0.9571 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.006958, allocations: 96 / 0.9571 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/0.007, allocations: 27.86 kB / 0.9572 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.007001, allocations: 0 / 0.9572 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.007008, allocations: 3.938 kB / 0.9572 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.00701, allocations: 4 kB / 0.9572 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.007011, allocations: 0 / 0.9572 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.007207, allocations: 149 kB / 0.9573 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-06/0.007216, allocations: 7.953 kB / 0.9573 GB, free: 12.92 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.007228, allocations: 11.92 kB / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.471e-05/0.007262, allocations: 11.98 kB / 0.9573 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.007294, allocations: 7.984 kB / 0.9574 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.0073, allocations: 4 kB / 0.9574 GB, free: 12.88 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.007333, allocations: 91.27 kB / 0.9574 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007333, allocations: 0 / 0.9574 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001458/0.007479, allocations: 27.94 kB / 0.9575 GB, free: 12.77 MB / 0.9167 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.0003486/0.007828, allocations: 107.1 kB / 0.9576 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000275/0.008103, allocations: 209 kB / 0.9578 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.008104, allocations: 0 / 0.9578 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.503e-05/0.008189, allocations: 43.91 kB / 0.9578 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.008332, allocations: 15.23 kB / 0.9578 GB, free: 12.38 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002708/0.008603, allocations: 198.4 kB / 0.958 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.902e-05/0.008642, allocations: 77.3 kB / 0.9581 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.008668, allocations: 12.5 kB / 0.9581 GB, free: 12.04 MB / 0.9167 GB Notification: Performance of SimCode: time 2.61e-07/0.008669, allocations: 0 / 0.9581 GB, free: 12.04 MB / 0.9167 GB Notification: Performance of Templates: time 0.001893/0.01056, allocations: 1.348 MB / 0.9594 GB, free: 10.71 MB / 0.9167 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] 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: 6.223388726823032]