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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.858/2.858, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 11.59 kB / 0.9022 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.365, allocations: 159.6 MB / 1.058 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001112/0.3661, allocations: 0.4925 MB / 1.059 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.3676, allocations: 1.135 MB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.3677, allocations: 4 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.3677, allocations: 3.938 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.3678, allocations: 7.922 kB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.3683, allocations: 118 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.3685, allocations: 107.7 kB / 1.06 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.832e-05/0.3686, allocations: 11.98 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.973e-05/0.3687, allocations: 43.84 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.173e-05/0.3688, allocations: 43.88 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.3688, allocations: 4 kB / 1.06 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.036e-05/0.3689, allocations: 27.86 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.3689, allocations: 11.98 kB / 1.06 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.781e-05/0.369, allocations: 41.64 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.3691, allocations: 79.8 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3691, allocations: 4 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3691, allocations: 0 / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3691, allocations: 0 / 1.06 GB, free: 3.164 MB / 0.8106 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.0006092/0.3697, allocations: 421 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3698, allocations: 8.031 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.3699, allocations: 7.906 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.37, allocations: 170.9 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.37, allocations: 7.953 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.37, allocations: 8 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.3703, allocations: 85.64 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.3703, allocations: 0 / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.3703, allocations: 7.984 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3704, allocations: 7.938 kB / 1.061 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.3707, allocations: 87.92 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004785/0.3711, allocations: 332.8 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.3713, allocations: 62.53 kB / 1.061 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.3715, allocations: 56.86 kB / 1.061 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.3715, allocations: 3.984 kB / 1.061 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.3718, allocations: 103.4 kB / 1.061 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.3718, allocations: 0 / 1.061 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005715/0.3724, allocations: 201.7 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3725, allocations: 55.41 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.644e-05/0.3726, allocations: 123.8 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.3726, allocations: 25.7 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.3727, allocations: 100 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.3727, allocations: 15.75 kB / 1.062 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.3727, allocations: 4 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3728, allocations: 322.8 kB / 1.062 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.373, allocations: 71.95 kB / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.3733, allocations: 90.52 kB / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.3735, allocations: 101.6 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3735, allocations: 96 / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005123/0.374, allocations: 243.3 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.3741, allocations: 41.7 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3741, allocations: 4 kB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3741, allocations: 0 / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.3742, allocations: 23.97 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3743, allocations: 7.938 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.3745, allocations: 51.95 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3745, allocations: 7.984 kB / 1.063 GB, free: 108 kB / 0.8106 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,$PRE.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.3746, allocations: 121.8 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.3747, allocations: 3.906 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.986e-05/0.3747, allocations: 16.38 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3747, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3747, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3747, allocations: 3.984 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.3749, allocations: 185.6 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3749, allocations: 0 / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.375, allocations: 19.98 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.375, allocations: 4 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.375, allocations: 4 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.375, allocations: 0 / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.375, allocations: 0 / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.3754, allocations: 180.8 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.3754, allocations: 81.09 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.3755, allocations: 4 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.14e-05/0.3756, allocations: 15.98 kB / 1.063 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.3756, allocations: 11.98 kB / 1.063 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.3756, allocations: 4 kB / 1.063 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.904e-05/0.3757, allocations: 92.14 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3757, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002202/0.3759, allocations: 20 kB / 1.064 GB, free: 15.25 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.3761, allocations: 109.8 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004684/0.3766, allocations: 219.3 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.3766, allocations: 4.125 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.3768, allocations: 59.89 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.377, allocations: 19.94 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003342/0.3773, allocations: 174.5 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.3776, allocations: 0.6887 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.47e-05/0.3777, allocations: 4.188 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.3777, allocations: 19.38 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3777, allocations: 0 / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of Templates: time 0.003991/0.3817, allocations: 1.344 MB / 1.066 GB, free: 12.57 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches