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.0009794/0.0009794, allocations: 80.8 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.001027/0.001027, allocations: 165 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.9557/0.9557, allocations: 177.1 MB / 204.6 MB, free: 5.465 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 1.916/1.916, allocations: 377.9 MB / 0.624 GB, free: 8.336 MB / 0.5886 GB " [Timeout remaining time 178] 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.134e-06/2.134e-06, allocations: 0.7656 kB / 0.7601 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.916e-05/3.129e-05, allocations: 9.531 kB / 0.7601 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002216/0.002247, allocations: 0.7959 MB / 0.7609 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001722/0.00397, allocations: 1.2 MB / 0.762 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.432e-05/0.004034, allocations: 4.984 kB / 0.762 GB, free: 4.539 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.295e-05/0.004067, allocations: 7.875 kB / 0.7621 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.973e-05/0.004167, allocations: 9.578 kB / 0.7621 GB, free: 4.527 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.004691, allocations: 136.8 kB / 0.7622 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.004914, allocations: 137.7 kB / 0.7623 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.145e-05/0.005006, allocations: 17.53 kB / 0.7623 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.005155, allocations: 67.94 kB / 0.7624 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.005259, allocations: 47.86 kB / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.005287, allocations: 8 kB / 0.7625 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.196e-05/0.005359, allocations: 24 kB / 0.7625 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.652e-05/0.005385, allocations: 13.86 kB / 0.7625 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.403e-05/0.005439, allocations: 35.95 kB / 0.7625 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.005619, allocations: 103.7 kB / 0.7626 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.005621, allocations: 0 / 0.7626 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.22e-07/0.005622, allocations: 0 / 0.7626 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.005626, allocations: 1.469 kB / 0.7626 GB, free: 3.965 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.0004841/0.00611, allocations: 314.3 kB / 0.7629 GB, free: 3.625 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.006147, allocations: 8.031 kB / 0.7629 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.84e-05/0.006195, allocations: 18.17 kB / 0.763 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.0063, allocations: 117.7 kB / 0.7631 GB, free: 3.461 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.006318, allocations: 4.375 kB / 0.7631 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.006342, allocations: 9.625 kB / 0.7631 GB, free: 3.449 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.006487, allocations: 66.92 kB / 0.7631 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.006497, allocations: 4.188 kB / 0.7632 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.006506, allocations: 0.875 kB / 0.7632 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.006512, allocations: 0.9062 kB / 0.7632 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.291e-05/0.006545, allocations: 15.88 kB / 0.7632 GB, free: 3.355 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.006856, allocations: 184.6 kB / 0.7633 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.411e-05/0.00691, allocations: 24.08 kB / 0.7634 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.415e-05/0.006934, allocations: 12.86 kB / 0.7634 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.006952, allocations: 4 kB / 0.7634 GB, free: 3.109 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/0.007055, allocations: 64.5 kB / 0.7634 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.744e-06/0.007057, allocations: 0 / 0.7634 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001546/0.007211, allocations: 65.61 kB / 0.7635 GB, free: 2.965 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.007249, allocations: 56.75 kB / 0.7636 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.137e-05/0.00734, allocations: 122.7 kB / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.007364, allocations: 29.7 kB / 0.7637 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.81e-05/0.007413, allocations: 96.08 kB / 0.7638 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.007436, allocations: 12.66 kB / 0.7638 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/0.007499, allocations: 33.67 kB / 0.7638 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.007595, allocations: 319.6 kB / 0.7641 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.032e-05/0.007665, allocations: 49.62 kB / 0.7642 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.719e-05/0.007743, allocations: 77 kB / 0.7643 GB, free: 2.117 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.007845, allocations: 78.42 kB / 0.7643 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.007847, allocations: 0 / 0.7643 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001975/0.008045, allocations: 160.9 kB / 0.7645 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.00808, allocations: 33.7 kB / 0.7645 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.008086, allocations: 4.562 kB / 0.7645 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.008102, allocations: 2.938 kB / 0.7645 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.035e-05/0.008193, allocations: 11.98 kB / 0.7645 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.008196, allocations: 0 / 0.7645 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.008316, allocations: 36.22 kB / 0.7646 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.008335, allocations: 4 kB / 0.7646 GB, free: 1.758 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.915e-05/0.008414, allocations: 117.9 kB / 0.7647 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.008434, allocations: 15.12 kB / 0.7647 GB, free: 1.621 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.594e-05/0.00846, allocations: 8.375 kB / 0.7647 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.008463, allocations: 4 kB / 0.7647 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.008465, allocations: 0 / 0.7647 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.008468, allocations: 0 / 0.7647 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.41e-05/0.008562, allocations: 77.88 kB / 0.7648 GB, free: 1.516 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.008564, allocations: 4 kB / 0.7648 GB, free: 1.512 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.532e-05/0.008619, allocations: 15.92 kB / 0.7648 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.008622, allocations: 5.75 kB / 0.7648 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.008628, allocations: 0 / 0.7648 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.00863, allocations: 0 / 0.7648 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.008633, allocations: 3.938 kB / 0.7648 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.008742, allocations: 77.11 kB / 0.7649 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.541e-05/0.008758, allocations: 15.12 kB / 0.7649 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.008771, allocations: 3.984 kB / 0.7649 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.536e-05/0.008807, allocations: 4 kB / 0.7649 GB, free: 1.375 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.008846, allocations: 19.91 kB / 0.7649 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.008852, allocations: 0 / 0.7649 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.57e-05/0.008878, allocations: 20.22 kB / 0.765 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.008878, allocations: 0 / 0.765 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002206/0.009099, allocations: 23.94 kB / 0.765 GB, free: 1.312 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.0001488/0.009248, allocations: 91.19 kB / 0.7651 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001821/0.00943, allocations: 133.9 kB / 0.7652 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.009433, allocations: 0 / 0.7652 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/0.009478, allocations: 24.78 kB / 0.7652 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.009613, allocations: 23.83 kB / 0.7652 GB, free: 1.02 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003337/0.009947, allocations: 157.5 kB / 0.7654 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.876e-05/0.009986, allocations: 63.34 kB / 0.7655 GB, free: 0.7578 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.46e-05/0.01002, allocations: 4.5 kB / 0.7655 GB, free: 0.7539 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.01013, allocations: 72.12 kB / 0.7655 GB, free: 0.6836 MB / 0.7136 GB Notification: Performance of SimCode: time 1.012e-06/0.01013, allocations: 0 / 0.7655 GB, free: 0.6836 MB / 0.7136 GB Notification: Performance of Templates: time 0.004587/0.01472, allocations: 1.743 MB / 0.7672 GB, free: 15.04 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 -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.097491178195924]