Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009988/0.0009988, allocations: 76.81 kB / 20.75 MB, free: 3.738 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.00102/0.00102, allocations: 161 kB / 24.17 MB, free: 328 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.9877/0.9877, allocations: 177.1 MB / 204.6 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 2.02/2.02, allocations: 377.9 MB / 0.624 GB, free: 8.367 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 0.7601 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.012e-05/3.25e-05, allocations: 11.23 kB / 0.7601 GB, free: 6.535 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002417/0.00245, allocations: 0.8371 MB / 0.761 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001688/0.004137, allocations: 1.21 MB / 0.7621 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.481e-05/0.004192, allocations: 0.5469 kB / 0.7621 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.402e-05/0.004226, allocations: 3.938 kB / 0.7621 GB, free: 4.496 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.881e-05/0.004325, allocations: 17.06 kB / 0.7622 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.004805, allocations: 137 kB / 0.7623 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.005017, allocations: 136.4 kB / 0.7624 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.607e-05/0.005103, allocations: 7.984 kB / 0.7624 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.005252, allocations: 78.06 kB / 0.7625 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.005353, allocations: 35.94 kB / 0.7625 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.005381, allocations: 15.94 kB / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-05/0.005467, allocations: 23.98 kB / 0.7626 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.423e-05/0.005491, allocations: 15.92 kB / 0.7626 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.005545, allocations: 35.91 kB / 0.7626 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.005721, allocations: 105.2 kB / 0.7627 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.005724, allocations: 0 / 0.7627 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.022e-06/0.005725, allocations: 0 / 0.7627 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.005728, allocations: 0 / 0.7627 GB, free: 3.922 MB / 0.7136 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.00047/0.006198, allocations: 307.7 kB / 0.763 GB, free: 3.59 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.006238, allocations: 15.97 kB / 0.763 GB, free: 3.574 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.006282, allocations: 10.19 kB / 0.763 GB, free: 3.566 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.006383, allocations: 125.7 kB / 0.7632 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.006398, allocations: 4.375 kB / 0.7632 GB, free: 3.414 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.006418, allocations: 4.375 kB / 0.7632 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.006567, allocations: 71.73 kB / 0.7632 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.006575, allocations: 3.219 kB / 0.7632 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.006583, allocations: 384 / 0.7632 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.006591, allocations: 4.375 kB / 0.7632 GB, free: 3.328 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.393e-05/0.006625, allocations: 7.938 kB / 0.7632 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003105/0.006935, allocations: 188.1 kB / 0.7634 GB, free: 3.121 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.08e-05/0.006986, allocations: 26.58 kB / 0.7635 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.525e-05/0.007012, allocations: 12.84 kB / 0.7635 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.007028, allocations: 2.75 kB / 0.7635 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.007128, allocations: 63.41 kB / 0.7635 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.00713, allocations: 0 / 0.7635 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001551/0.007285, allocations: 69.8 kB / 0.7636 GB, free: 2.922 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.007319, allocations: 51.41 kB / 0.7636 GB, free: 2.859 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.067e-05/0.00741, allocations: 129.2 kB / 0.7638 GB, free: 2.723 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.007436, allocations: 33.69 kB / 0.7638 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.007491, allocations: 96.08 kB / 0.7639 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.00751, allocations: 8.5 kB / 0.7639 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.007576, allocations: 34.94 kB / 0.7639 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.007672, allocations: 318.8 kB / 0.7642 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.316e-05/0.007746, allocations: 53.75 kB / 0.7643 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.603e-05/0.007822, allocations: 72.83 kB / 0.7644 GB, free: 2.074 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.94e-05/0.007921, allocations: 88.97 kB / 0.7644 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.007923, allocations: 0.6562 kB / 0.7644 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001928/0.008115, allocations: 152.2 kB / 0.7646 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.008151, allocations: 33.7 kB / 0.7646 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.008157, allocations: 3.938 kB / 0.7646 GB, free: 1.766 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.008173, allocations: 4 kB / 0.7646 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.043e-05/0.008264, allocations: 15.92 kB / 0.7646 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.008269, allocations: 4.062 kB / 0.7646 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.008395, allocations: 31.91 kB / 0.7647 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.008414, allocations: 11.06 kB / 0.7647 GB, free: 1.703 MB / 0.7136 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.898e-05/0.008493, allocations: 113.8 kB / 0.7648 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.008509, allocations: 11.98 kB / 0.7648 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.637e-05/0.008536, allocations: 8.375 kB / 0.7648 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.008538, allocations: 0 / 0.7648 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.00854, allocations: 0 / 0.7648 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.008543, allocations: 0 / 0.7648 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.053e-05/0.008633, allocations: 81.88 kB / 0.7649 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.008634, allocations: 1.812 kB / 0.7649 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.008686, allocations: 11.98 kB / 0.7649 GB, free: 1.453 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.008689, allocations: 4 kB / 0.7649 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.008696, allocations: 3.938 kB / 0.7649 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.008697, allocations: 1.562 kB / 0.7649 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.0087, allocations: 3.938 kB / 0.7649 GB, free: 1.441 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.008802, allocations: 81.09 kB / 0.765 GB, free: 1.344 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.087e-05/0.008813, allocations: 7.953 kB / 0.765 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.008825, allocations: 1.281 kB / 0.765 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.91e-05/0.008864, allocations: 7.984 kB / 0.765 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.008902, allocations: 15.92 kB / 0.765 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.008908, allocations: 0.7812 kB / 0.765 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.32e-05/0.008931, allocations: 16.84 kB / 0.765 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1e-07/0.008931, allocations: 0.8438 kB / 0.765 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002121/0.009143, allocations: 20 kB / 0.7651 GB, free: 1.273 MB / 0.7136 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.0001223/0.009266, allocations: 93.45 kB / 0.7652 GB, free: 1.176 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.009461, allocations: 142.8 kB / 0.7653 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.009464, allocations: 0 / 0.7653 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.114e-05/0.009505, allocations: 17.39 kB / 0.7653 GB, free: 0.9961 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.00964, allocations: 21.17 kB / 0.7653 GB, free: 0.9766 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003033/0.009944, allocations: 157.6 kB / 0.7655 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.916e-05/0.009983, allocations: 63.34 kB / 0.7655 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.474e-05/0.01002, allocations: 0.7188 kB / 0.7655 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.01013, allocations: 67.95 kB / 0.7656 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of SimCode: time 6.71e-07/0.01013, allocations: 1.219 kB / 0.7656 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of Templates: time 0.004288/0.01442, allocations: 1.757 MB / 0.7673 GB, free: 14.99 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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: 5.174692215863615]