Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_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.006785/0.006785, allocations: 100.3 kB / 15.73 MB, free: 6.059 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.001524/0.001525, allocations: 194.5 kB / 16.68 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.8/2.8, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 71.88 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3086, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00206/0.3107, allocations: 0.8333 MB / 1.167 GB, free: 6.473 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3123, allocations: 1.28 MB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.386e-05/0.3124, allocations: 7.938 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.151e-05/0.3124, allocations: 11.81 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.3126, allocations: 23.78 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009624/0.3135, allocations: 318.1 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.3139, allocations: 319.4 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.3141, allocations: 41.42 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3143, allocations: 111.8 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.3145, allocations: 107.7 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 6.947e-05/0.3146, allocations: 31.98 kB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.3147, allocations: 35.98 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.468e-05/0.3147, allocations: 27.92 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.3149, allocations: 99.61 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.3152, allocations: 267.4 kB / 1.17 GB, free: 3.805 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3153, allocations: 4 kB / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3153, allocations: 0 / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3153, allocations: 0 / 1.17 GB, free: 3.801 MB / 0.92 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.00078/0.3161, allocations: 0.5311 MB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.3161, allocations: 12.03 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.463e-05/0.3162, allocations: 38.73 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.314e-05/0.3163, allocations: 24.88 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.3164, allocations: 186.8 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.3165, allocations: 15.94 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.096e-05/0.3165, allocations: 20 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.3167, allocations: 93.64 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.3167, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3168, allocations: 4 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3168, allocations: 0 / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.3169, allocations: 50.22 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000765/0.3177, allocations: 492.4 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.3179, allocations: 82.47 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.796e-05/0.318, allocations: 28.98 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.318, allocations: 0 / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.3182, allocations: 119.3 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 1.943e-06/0.3182, allocations: 0 / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0003771/0.3186, allocations: 169.5 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.3187, allocations: 63.34 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.3188, allocations: 165.2 kB / 1.172 GB, free: 1.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.3189, allocations: 41.64 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.319, allocations: 108.1 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/0.319, allocations: 31.73 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.3191, allocations: 73.67 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3193, allocations: 322.8 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.3195, allocations: 99.94 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.3197, allocations: 144.4 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.32, allocations: 261 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.32, allocations: 0 / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006385/0.3206, allocations: 398.3 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/0.3207, allocations: 101.1 kB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3207, allocations: 3.984 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3208, allocations: 4.188 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.331e-05/0.3208, allocations: 15.94 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3209, allocations: 4 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.3213, allocations: 87.73 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.3214, allocations: 23.98 kB / 1.173 GB, free: 15.71 MB / 0.9356 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.0001405/0.3215, allocations: 133.8 kB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.3216, allocations: 15.89 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.3216, allocations: 12.84 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3216, allocations: 11.92 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3216, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3216, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.3219, allocations: 217.5 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3219, allocations: 7.938 kB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.128e-05/0.3219, allocations: 11.98 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3219, allocations: 4 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.322, allocations: 4 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.322, allocations: 0 / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.322, allocations: 4 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.3222, allocations: 160 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.3223, allocations: 88.95 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.3223, allocations: 4 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.449e-05/0.3224, allocations: 7.984 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.3224, allocations: 15.97 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.3224, allocations: 12 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.89e-05/0.3225, allocations: 117.2 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.3225, allocations: 0 / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002987/0.3228, allocations: 48 kB / 1.174 GB, free: 14.76 MB / 0.9356 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.0006274/0.3235, allocations: 0.7155 MB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005392/0.324, allocations: 386.1 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.324, allocations: 0 / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.3241, allocations: 51.92 kB / 1.175 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.3244, allocations: 24.62 kB / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3271, allocations: 2.252 MB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.3274, allocations: 0.7045 MB / 1.178 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.92e-05/0.3275, allocations: 16.59 kB / 1.178 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.029e-05/0.3275, allocations: 51.36 kB / 1.178 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.3275, allocations: 0 / 1.178 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.3504, allocations: 4.216 MB / 1.182 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/8.084, allocations: 12 kB / 1.182 GB, free: 6.246 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches