Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009404/0.009405, allocations: 103.6 kB / 15.73 MB, free: 6.445 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.001568/0.001568, allocations: 190.6 kB / 16.67 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.439/2.439, allocations: 390.2 MB / 0.6648 GB, free: 140 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 69.05 kB / 0.9509 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3593, allocations: 140.4 MB / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001997/0.3613, allocations: 0.7809 MB / 1.089 GB, free: 0.6406 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.3629, allocations: 1.149 MB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.425e-05/0.363, allocations: 4 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.856e-05/0.363, allocations: 3.938 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.477e-05/0.3631, allocations: 11.86 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.3636, allocations: 134.7 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.3639, allocations: 131.8 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.364, allocations: 15.98 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3641, allocations: 51.89 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3642, allocations: 51.81 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.3643, allocations: 12 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.353e-05/0.3644, allocations: 27.92 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.701e-05/0.3644, allocations: 19.91 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.731e-05/0.3645, allocations: 43.84 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.3647, allocations: 123.6 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3647, allocations: 0 / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3647, allocations: 0 / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.3647, allocations: 0 / 1.09 GB, free: 14.86 MB / 0.8575 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.0007853/0.3655, allocations: 421 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.3656, allocations: 8.031 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.3657, allocations: 16.84 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.3658, allocations: 176.2 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.3659, allocations: 4.375 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.3659, allocations: 8.375 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002933/0.3662, allocations: 82.12 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3662, allocations: 4.188 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.3662, allocations: 7.938 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3663, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.3666, allocations: 67.92 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.3672, allocations: 320.8 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.3674, allocations: 62.47 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.3675, allocations: 44.91 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.3676, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003483/0.3679, allocations: 95.3 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3679, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006201/0.3686, allocations: 173.4 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.3686, allocations: 51.41 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3688, allocations: 124 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.3688, allocations: 29.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.3689, allocations: 100 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.3689, allocations: 11.75 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.369, allocations: 37.72 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3691, allocations: 322.8 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.3693, allocations: 63.94 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.3695, allocations: 82.52 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.3699, allocations: 152.2 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3699, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004965/0.3704, allocations: 207.1 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.589e-05/0.3705, allocations: 37.69 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3705, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3705, allocations: 4 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.3706, allocations: 16.05 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3707, allocations: 4 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.3709, allocations: 39.94 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.3709, allocations: 8 kB / 1.093 GB, free: 11.87 MB / 0.8575 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 0.0001393/0.3711, allocations: 121.7 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.3711, allocations: 7.906 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.3711, allocations: 16.36 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3712, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3712, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3712, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.3714, allocations: 181.9 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3714, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.3715, allocations: 23.97 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3715, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3715, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3715, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3715, allocations: 4 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.372, allocations: 156.8 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.372, allocations: 89.03 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.372, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.104e-05/0.3721, allocations: 15.98 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.3722, allocations: 7.984 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.3722, allocations: 4 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.33e-05/0.3723, allocations: 91.27 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3723, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002401/0.3725, allocations: 23.94 kB / 1.094 GB, free: 11.04 MB / 0.8575 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.0002612/0.3728, allocations: 115.2 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005195/0.3733, allocations: 187.2 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3733, allocations: 96 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.3735, allocations: 55.88 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.3738, allocations: 16.05 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.3743, allocations: 166.1 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.3748, allocations: 0.6923 MB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.167e-05/0.3749, allocations: 3.75 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.3749, allocations: 11.44 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/0.3749, allocations: 0 / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of Templates: time 0.005998/0.3809, allocations: 1.631 MB / 1.097 GB, free: 8.117 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches