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.00544/0.005441, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001201/0.001201, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.4/2.4, allocations: 390.3 MB / 0.6648 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 71.84 kB / 0.9504 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007/1.008, allocations: 140.4 MB / 1.087 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002078/1.01, allocations: 0.8269 MB / 1.088 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001611/1.012, allocations: 1.285 MB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.218e-05/1.012, allocations: 1.438 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.379e-05/1.012, allocations: 15.11 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.487e-05/1.012, allocations: 19.45 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008644/1.013, allocations: 322.1 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003865/1.014, allocations: 310 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/1.014, allocations: 42.92 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/1.014, allocations: 110.2 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/1.014, allocations: 118.3 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/1.014, allocations: 25.34 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/1.014, allocations: 40.58 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/1.014, allocations: 26.66 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001728/1.015, allocations: 103.5 kB / 1.091 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004408/1.015, allocations: 266.8 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.015, allocations: 0.875 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.295e-06/1.015, allocations: 0.6562 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.364e-06/1.015, allocations: 0.7812 kB / 1.091 GB, free: 3.168 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.0007317/1.016, allocations: 0.525 MB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/1.016, allocations: 9.344 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/1.016, allocations: 44.67 kB / 1.091 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.097e-05/1.016, allocations: 18.16 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/1.016, allocations: 188.1 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/1.016, allocations: 17.27 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/1.016, allocations: 24.86 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/1.016, allocations: 83.03 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/1.016, allocations: 1.422 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/1.017, allocations: 5.391 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/1.017, allocations: 2 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/1.017, allocations: 55.8 kB / 1.092 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/1.017, allocations: 487.4 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/1.018, allocations: 77.44 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.521e-05/1.018, allocations: 29.72 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/1.018, allocations: 4.953 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/1.018, allocations: 111.8 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/1.018, allocations: 0.7188 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.00039/1.018, allocations: 177 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/1.019, allocations: 55.55 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/1.019, allocations: 171.4 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/1.019, allocations: 35.58 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7e-05/1.019, allocations: 108.7 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/1.019, allocations: 30.19 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/1.019, allocations: 75.3 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.032e-05/1.019, allocations: 322.6 kB / 1.093 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/1.019, allocations: 100.3 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/1.02, allocations: 147.5 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/1.02, allocations: 250.2 kB / 1.094 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.02, allocations: 0.6875 kB / 1.094 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006832/1.021, allocations: 404.4 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.892e-05/1.021, allocations: 101.7 kB / 1.094 GB, free: 396 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.021, allocations: 6.469 kB / 1.094 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/1.021, allocations: 2.25 kB / 1.094 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.609e-05/1.021, allocations: 14.81 kB / 1.094 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/1.021, allocations: 2.781 kB / 1.094 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/1.021, allocations: 80.94 kB / 1.094 GB, free: 380 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/1.021, allocations: 21.88 kB / 1.095 GB, free: 376 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.000123/1.021, allocations: 142.3 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/1.021, allocations: 17.56 kB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/1.022, allocations: 16.72 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/1.022, allocations: 1.906 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/1.022, allocations: 1.547 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.022, allocations: 4.562 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/1.022, allocations: 218.2 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/1.022, allocations: 3.938 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.937e-05/1.022, allocations: 13.91 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/1.022, allocations: 0.9688 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/1.022, allocations: 6.422 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.022, allocations: 0.9688 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.022, allocations: 0.6562 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/1.022, allocations: 163.1 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-05/1.022, allocations: 89.56 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/1.022, allocations: 2.125 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.602e-05/1.022, allocations: 9.891 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/1.022, allocations: 16.44 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/1.022, allocations: 9.688 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.657e-05/1.023, allocations: 113.9 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/1.023, allocations: 0.8125 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003199/1.023, allocations: 57.45 kB / 1.095 GB, free: 15.66 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.0006123/1.023, allocations: 0.7027 MB / 1.096 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006391/1.024, allocations: 387.6 kB / 1.096 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.024, allocations: 0 / 1.096 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/1.024, allocations: 51.39 kB / 1.096 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/1.025, allocations: 36.44 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/1.028, allocations: 2.24 MB / 1.099 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/1.028, allocations: 0.7078 MB / 1.099 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.736e-05/1.028, allocations: 15 kB / 1.099 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.482e-05/1.028, allocations: 42.97 kB / 1.099 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of SimCode: time 6.21e-07/1.028, allocations: 0 / 1.099 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/1.051, allocations: 4.215 MB / 1.104 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/8.76, allocations: 7.281 kB / 1.104 GB, free: 11.73 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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