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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001661/0.001666, allocations: 101.9 kB / 16.27 MB, free: 5.965 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.00191/0.00191, allocations: 188.6 kB / 17.2 MB, free: 5.59 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.567/2.567, allocations: 469.4 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 67.33 kB / 0.9088 GB, free: 14.08 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3715, allocations: 159.1 MB / 1.064 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002446/0.374, allocations: 0.782 MB / 1.065 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.3756, allocations: 1.155 MB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.237e-05/0.3757, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.081e-05/0.3758, allocations: 7.922 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.483e-05/0.3759, allocations: 15.88 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.3765, allocations: 134.2 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.3767, allocations: 127.8 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3769, allocations: 19.92 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.377, allocations: 59.83 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.3771, allocations: 43.88 kB / 1.067 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.3771, allocations: 12 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.01e-05/0.3772, allocations: 20 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.3773, allocations: 15.92 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.649e-05/0.3773, allocations: 47.83 kB / 1.067 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.3775, allocations: 119.7 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3776, allocations: 0 / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.396e-06/0.3776, allocations: 4 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3776, allocations: 0 / 1.067 GB, free: 12.4 MB / 0.8419 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.0006818/0.3783, allocations: 421.2 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3783, allocations: 12.03 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.3784, allocations: 8.844 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3785, allocations: 180.2 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.3785, allocations: 12.38 kB / 1.067 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.3786, allocations: 4.375 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.3789, allocations: 78.2 kB / 1.067 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.3789, allocations: 192 / 1.067 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.3789, allocations: 15.91 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.3789, allocations: 0 / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.3792, allocations: 71.92 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004755/0.3797, allocations: 328.7 kB / 1.068 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.3799, allocations: 54.53 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3801, allocations: 44.92 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3801, allocations: 3.938 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000297/0.3804, allocations: 91.34 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.753e-06/0.3804, allocations: 0 / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0006367/0.3811, allocations: 177.4 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.3811, allocations: 55.34 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.513e-05/0.3812, allocations: 121.7 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.3813, allocations: 25.7 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.3813, allocations: 104 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.3814, allocations: 15.75 kB / 1.068 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.3814, allocations: 37.7 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.522e-05/0.3815, allocations: 322.8 kB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.3818, allocations: 59.95 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.382, allocations: 82.5 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.3824, allocations: 148.1 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3824, allocations: 0 / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005382/0.3829, allocations: 215.2 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.383, allocations: 37.69 kB / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.383, allocations: 0 / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.383, allocations: 4 kB / 1.069 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.3832, allocations: 15.98 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.3832, allocations: 3.938 kB / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.3834, allocations: 48 kB / 1.069 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3835, allocations: 4 kB / 1.069 GB, free: 9.387 MB / 0.8419 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 9.626e-05/0.3836, allocations: 117.8 kB / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.3836, allocations: 11.89 kB / 1.07 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.3836, allocations: 8.375 kB / 1.07 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3837, allocations: 4 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3837, allocations: 0 / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3837, allocations: 0 / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.3838, allocations: 185.6 kB / 1.07 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3838, allocations: 320 / 1.07 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.3839, allocations: 23.97 kB / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.384, allocations: 0 / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.384, allocations: 0 / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.384, allocations: 0 / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.384, allocations: 4 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003933/0.3844, allocations: 156.9 kB / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.3844, allocations: 85.05 kB / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.3844, allocations: 0 / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.074e-05/0.3845, allocations: 15.97 kB / 1.07 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.3846, allocations: 11.94 kB / 1.07 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.3846, allocations: 0 / 1.07 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.33e-05/0.3847, allocations: 99.27 kB / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3847, allocations: 0 / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000252/0.3849, allocations: 20 kB / 1.07 GB, free: 8.562 MB / 0.8419 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.0001977/0.3851, allocations: 107.8 kB / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005079/0.3857, allocations: 195.2 kB / 1.07 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3857, allocations: 4.125 kB / 1.07 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.3859, allocations: 47.95 kB / 1.07 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.3861, allocations: 11.94 kB / 1.07 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004323/0.3865, allocations: 191.5 kB / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.3868, allocations: 0.6885 MB / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.91e-05/0.3868, allocations: 15.44 kB / 1.071 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3868, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of Templates: time 0.003289/0.3901, allocations: 1.316 MB / 1.073 GB, free: 5.934 MB / 0.8419 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/jenkins1/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