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.0009928/0.0009928, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.0009786/0.0009786, allocations: 162.7 kB / 24.87 MB, free: 8.891 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.9739/0.9739, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.763/1.763, allocations: 359 MB / 0.6063 GB, free: 10.89 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.593e-06/1.593e-06, allocations: 0 / 0.7884 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.571e-05/1.73e-05, allocations: 4.188 kB / 0.7884 GB, free: 12.15 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001331/0.001348, allocations: 0.7968 MB / 0.7892 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.002486, allocations: 1.198 MB / 0.7903 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.579e-05/0.002532, allocations: 0.9375 kB / 0.7903 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.002557, allocations: 3.938 kB / 0.7903 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-05/0.002628, allocations: 16.97 kB / 0.7904 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.002985, allocations: 132.2 kB / 0.7905 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000154/0.003139, allocations: 136.2 kB / 0.7906 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.515e-05/0.003214, allocations: 9.438 kB / 0.7906 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.003332, allocations: 79.86 kB / 0.7907 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.449e-05/0.003407, allocations: 31.95 kB / 0.7907 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.00343, allocations: 12 kB / 0.7907 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.548e-05/0.003485, allocations: 21.52 kB / 0.7908 GB, free: 9.73 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.003511, allocations: 23.91 kB / 0.7908 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.879e-05/0.00355, allocations: 31.92 kB / 0.7908 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.003679, allocations: 103.7 kB / 0.7909 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.003681, allocations: 1.562 kB / 0.7909 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.71e-07/0.003681, allocations: 0 / 0.7909 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.003685, allocations: 0 / 0.7909 GB, free: 9.574 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.0003813/0.004066, allocations: 446 kB / 0.7913 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.004096, allocations: 15.31 kB / 0.7913 GB, free: 9.082 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.004133, allocations: 12.89 kB / 0.7914 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.988e-05/0.004213, allocations: 112.6 kB / 0.7915 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.004226, allocations: 8.375 kB / 0.7915 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.00424, allocations: 4.375 kB / 0.7915 GB, free: 8.922 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.004344, allocations: 74.86 kB / 0.7916 GB, free: 8.84 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.00435, allocations: 192 / 0.7916 GB, free: 8.84 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.004358, allocations: 4.375 kB / 0.7916 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.004362, allocations: 1.25 kB / 0.7916 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.343e-05/0.004385, allocations: 11.92 kB / 0.7916 GB, free: 8.824 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002706/0.004656, allocations: 292.8 kB / 0.7918 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.228e-05/0.004698, allocations: 35.7 kB / 0.7919 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.891e-05/0.004717, allocations: 11.69 kB / 0.7919 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.004729, allocations: 1.406 kB / 0.7919 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.811e-05/0.004807, allocations: 73.12 kB / 0.792 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.004808, allocations: 0 / 0.792 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001491/0.004957, allocations: 77.52 kB / 0.792 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.005002, allocations: 52.03 kB / 0.7921 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.014e-05/0.005073, allocations: 182.9 kB / 0.7923 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.005089, allocations: 29.7 kB / 0.7923 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.005136, allocations: 142.8 kB / 0.7924 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.005151, allocations: 12.66 kB / 0.7924 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.005202, allocations: 39.34 kB / 0.7925 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.005301, allocations: 496.8 kB / 0.7929 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.6e-05/0.005387, allocations: 53.69 kB / 0.793 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.507e-05/0.005442, allocations: 86 kB / 0.7931 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.21e-05/0.005514, allocations: 88.69 kB / 0.7932 GB, free: 7.023 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.005516, allocations: 0.5 kB / 0.7932 GB, free: 7.023 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001681/0.005684, allocations: 182.7 kB / 0.7933 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.005711, allocations: 37.64 kB / 0.7934 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.005714, allocations: 0 / 0.7934 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.246e-06/0.005723, allocations: 6.188 kB / 0.7934 GB, free: 6.781 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.504e-05/0.005788, allocations: 15.98 kB / 0.7934 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.00579, allocations: 80 / 0.7934 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.578e-05/0.005876, allocations: 39.8 kB / 0.7934 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.005892, allocations: 14.67 kB / 0.7935 GB, free: 6.715 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.259e-05/0.005955, allocations: 164.5 kB / 0.7936 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.005967, allocations: 7.953 kB / 0.7936 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.002e-05/0.005988, allocations: 16.36 kB / 0.7936 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.00599, allocations: 4 kB / 0.7936 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.005991, allocations: 0 / 0.7936 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.005994, allocations: 1.594 kB / 0.7936 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.895e-05/0.006063, allocations: 105.2 kB / 0.7937 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.006063, allocations: 0 / 0.7937 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.006101, allocations: 15.98 kB / 0.7938 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.006102, allocations: 0.5 kB / 0.7938 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.006106, allocations: 4 kB / 0.7938 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.006107, allocations: 0.5 kB / 0.7938 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.006109, allocations: 4.438 kB / 0.7938 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.934e-05/0.006198, allocations: 101.8 kB / 0.7939 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.425e-06/0.006207, allocations: 11.97 kB / 0.7939 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.006217, allocations: 8 kB / 0.7939 GB, free: 6.227 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.293e-05/0.00624, allocations: 4 kB / 0.7939 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.006268, allocations: 8.516 kB / 0.7939 GB, free: 6.215 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.006274, allocations: 6 kB / 0.7939 GB, free: 6.211 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.739e-05/0.006311, allocations: 141.2 kB / 0.794 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4e-08/0.006311, allocations: 0 / 0.794 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000142/0.006453, allocations: 23.95 kB / 0.7941 GB, free: 6.051 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 8.977e-05/0.006543, allocations: 99.73 kB / 0.7941 GB, free: 5.941 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001443/0.006687, allocations: 149.7 kB / 0.7943 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.006688, allocations: 0 / 0.7943 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.016e-05/0.006719, allocations: 23.88 kB / 0.7943 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.006862, allocations: 21.67 kB / 0.7943 GB, free: 5.727 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002667/0.007129, allocations: 174.7 kB / 0.7945 GB, free: 5.527 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.179e-05/0.007161, allocations: 63.25 kB / 0.7946 GB, free: 5.449 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.542e-05/0.007186, allocations: 4 kB / 0.7946 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.007363, allocations: 94.17 kB / 0.7947 GB, free: 5.352 MB / 0.7448 GB Notification: Performance of SimCode: time 5.41e-07/0.007364, allocations: 0 / 0.7947 GB, free: 5.352 MB / 0.7448 GB Notification: Performance of Templates: time 0.003282/0.01065, allocations: 1.911 MB / 0.7965 GB, free: 3.492 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.985492920968682]