Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005213/0.005213, allocations: 103.5 kB / 15.73 MB, free: 6.004 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.00119/0.00119, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.251/2.251, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001735, allocations: 59.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9757/0.9775, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001964/0.9795, allocations: 0.8251 MB / 1.088 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001469/0.981, allocations: 1.293 MB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.828e-05/0.9811, allocations: 2.656 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.953e-05/0.9811, allocations: 9.938 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.8e-05/0.9812, allocations: 24.27 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008503/0.9821, allocations: 320.7 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003831/0.9825, allocations: 310.5 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.9826, allocations: 42.81 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.9828, allocations: 109.9 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.983, allocations: 115.2 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.983, allocations: 30.33 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.9832, allocations: 43.81 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.9832, allocations: 21.64 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.9833, allocations: 100.5 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.9837, allocations: 262.6 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.9837, allocations: 1.359 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9837, allocations: 0 / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.9838, allocations: 0 / 1.091 GB, free: 3.219 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006768/0.9844, allocations: 0.5279 MB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/0.9845, allocations: 9.531 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.681e-05/0.9846, allocations: 44.05 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.284e-05/0.9847, allocations: 18.84 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.9848, allocations: 188.5 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.9848, allocations: 14.17 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.9849, allocations: 19.92 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.9851, allocations: 87.73 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.9851, allocations: 0.7812 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.9851, allocations: 5.641 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.9851, allocations: 2.562 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.9853, allocations: 55.52 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006697/0.9859, allocations: 496.1 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/0.9862, allocations: 68.8 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.858e-05/0.9862, allocations: 33.02 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.9863, allocations: 5.781 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.9865, allocations: 123.7 kB / 1.093 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.9865, allocations: 0 / 1.093 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003512/0.9868, allocations: 168.8 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.9869, allocations: 54.61 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.987, allocations: 168.5 kB / 1.093 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.987, allocations: 40.88 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.9871, allocations: 108.1 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.9871, allocations: 30.94 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.9873, allocations: 74.61 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.234e-05/0.9873, allocations: 323 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.9876, allocations: 96.16 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.9878, allocations: 155 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.9881, allocations: 250.1 kB / 1.094 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.9881, allocations: 0.6875 kB / 1.094 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006747/0.9888, allocations: 404.1 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.643e-05/0.9889, allocations: 102.1 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.9889, allocations: 2.125 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.9889, allocations: 2.5 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.06e-05/0.989, allocations: 11.53 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.989, allocations: 2.625 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.9895, allocations: 88.08 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.9895, allocations: 18.53 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0001007/0.9896, allocations: 138.5 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.9897, allocations: 22.03 kB / 1.095 GB, free: 272 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.748e-05/0.9897, allocations: 17.11 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.9897, allocations: 2.734 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.9897, allocations: 0 / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.9897, allocations: 1.297 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.9899, allocations: 218.3 kB / 1.095 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.9899, allocations: 3.938 kB / 1.095 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.793e-05/0.99, allocations: 9.359 kB / 1.095 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.99, allocations: 4.688 kB / 1.095 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.99, allocations: 6.922 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.99, allocations: 4.844 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.99, allocations: 0.9375 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.9903, allocations: 157.2 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.197e-05/0.9904, allocations: 89.97 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.9904, allocations: 1.672 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.346e-05/0.9904, allocations: 5.891 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.9905, allocations: 12.77 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.9905, allocations: 5.703 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.775e-05/0.9906, allocations: 120.3 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9906, allocations: 4.688 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003098/0.9909, allocations: 57.52 kB / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006125/0.9915, allocations: 0.7036 MB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006016/0.9922, allocations: 388.8 kB / 1.096 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.9922, allocations: 1.281 kB / 1.096 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.9923, allocations: 50.59 kB / 1.096 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.9926, allocations: 29.48 kB / 1.097 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.9956, allocations: 2.248 MB / 1.099 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.9959, allocations: 0.7068 MB / 1.099 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.453e-05/0.9959, allocations: 11.98 kB / 1.099 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.996, allocations: 38.53 kB / 1.099 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of SimCode: time 2.154e-06/0.996, allocations: 0 / 1.099 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/1.021, allocations: 4.324 MB / 1.104 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.047/9.069, allocations: 7.234 kB / 1.104 GB, free: 11.75 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches