Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_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.001404/0.001404, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.519/2.519, allocations: 469.8 MB / 0.7424 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 75.02 kB / 0.9087 GB, free: 34.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2356, allocations: 159.2 MB / 1.064 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001864/0.2375, allocations: 0.8172 MB / 1.065 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.239, allocations: 1.285 MB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.2391, allocations: 4 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.117e-05/0.2392, allocations: 15.8 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.606e-05/0.2392, allocations: 19.73 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000741/0.24, allocations: 320.5 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.2403, allocations: 311.5 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.2404, allocations: 41.42 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.2405, allocations: 111.8 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.2407, allocations: 99.67 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.2407, allocations: 24 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.158e-05/0.2408, allocations: 36 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.116e-05/0.2409, allocations: 27.86 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.241, allocations: 111.7 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.2413, allocations: 251.6 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2413, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.21e-07/0.2413, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2413, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 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.000586/0.2419, allocations: 0.5248 MB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2419, allocations: 15.97 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.242, allocations: 38.73 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.601e-05/0.2421, allocations: 20.84 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.2422, allocations: 188.6 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.2422, allocations: 20.12 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.2423, allocations: 16 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.2424, allocations: 85.66 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.2424, allocations: 4 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2425, allocations: 3.984 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2425, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.974e-05/0.2426, allocations: 51.92 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006246/0.2432, allocations: 0.4922 MB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.2434, allocations: 74.67 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.465e-05/0.2435, allocations: 32.84 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.2435, allocations: 0 / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.2437, allocations: 120 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.2437, allocations: 0 / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003355/0.244, allocations: 174.2 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.2441, allocations: 51.41 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.2442, allocations: 155.6 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.2443, allocations: 33.7 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.2443, allocations: 111.9 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.74e-05/0.2444, allocations: 35.62 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.2445, allocations: 77.67 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.2446, allocations: 322.8 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.2448, allocations: 99.88 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.2451, allocations: 147.1 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.2454, allocations: 249.1 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2454, allocations: 0 / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006109/0.246, allocations: 402.2 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.2461, allocations: 105.1 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2461, allocations: 4 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2461, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.258e-05/0.2462, allocations: 12 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2462, allocations: 0 / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004799/0.2467, allocations: 91.92 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.2467, allocations: 27.92 kB / 1.071 GB, free: 6.641 MB / 0.8262 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.0001193/0.2468, allocations: 134.3 kB / 1.071 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.2469, allocations: 19.75 kB / 1.071 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.2469, allocations: 12.83 kB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2469, allocations: 8 kB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2469, allocations: 4 kB / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2469, allocations: 0 / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.2471, allocations: 217.6 kB / 1.071 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2471, allocations: 0 / 1.071 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.612e-05/0.2472, allocations: 19.86 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2472, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2472, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2472, allocations: 4 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2472, allocations: 0 / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002216/0.2474, allocations: 170.1 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.2475, allocations: 88.95 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.2475, allocations: 7.984 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.783e-05/0.2476, allocations: 3.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.509e-05/0.2476, allocations: 15.98 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.2476, allocations: 4 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8e-05/0.2477, allocations: 117.2 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2477, allocations: 0 / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000257/0.248, allocations: 55.84 kB / 1.072 GB, free: 5.684 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: 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.0005134/0.2485, allocations: 0.7122 MB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004951/0.249, allocations: 388 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.249, allocations: 384 / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.21e-05/0.2491, allocations: 55.92 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.2493, allocations: 31.59 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.2519, allocations: 2.238 MB / 1.075 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.2522, allocations: 0.7084 MB / 1.076 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.624e-05/0.2522, allocations: 12.66 kB / 1.076 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.2523, allocations: 39.42 kB / 1.076 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2523, allocations: 0 / 1.076 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.706/5.958, allocations: 4.165 MB / 1.08 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/18.65, allocations: 14.55 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches