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.005455/0.005455, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001175/0.001175, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.4 MB, free: 4.312 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.567/2.567, allocations: 437.1 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 67.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3027, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002243/0.305, allocations: 0.8295 MB / 1.167 GB, free: 6.461 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001915/0.307, allocations: 1.288 MB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.324e-05/0.3071, allocations: 4 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.577e-05/0.3071, allocations: 11.86 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.3073, allocations: 19.8 kB / 1.168 GB, free: 5.121 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009301/0.3082, allocations: 324.4 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.3087, allocations: 307.5 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.3089, allocations: 37.42 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.309, allocations: 119.7 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.3093, allocations: 115.6 kB / 1.169 GB, free: 4.238 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 6.7e-05/0.3093, allocations: 28 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.3094, allocations: 43.97 kB / 1.169 GB, free: 4.168 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3095, allocations: 23.86 kB / 1.169 GB, free: 4.145 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002334/0.3097, allocations: 107.7 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.3101, allocations: 262 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3101, allocations: 0 / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3102, allocations: 0 / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.3102, allocations: 4 kB / 1.17 GB, free: 3.781 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.0007123/0.3109, allocations: 0.5282 MB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3109, allocations: 8.031 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.339e-05/0.311, allocations: 46.73 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.413e-05/0.3111, allocations: 16.84 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.3112, allocations: 184.7 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.3113, allocations: 11.94 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.3113, allocations: 23.98 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3115, allocations: 93.55 kB / 1.17 GB, free: 2.758 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3115, allocations: 0 / 1.17 GB, free: 2.758 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3115, allocations: 4 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3115, allocations: 4 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.656e-05/0.3116, allocations: 47.97 kB / 1.171 GB, free: 2.703 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007002/0.3124, allocations: 492.2 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.3126, allocations: 66.61 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.3126, allocations: 32.89 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.3127, allocations: 8 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.3129, allocations: 115.2 kB / 1.171 GB, free: 1.93 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 2.925e-06/0.3129, allocations: 3.984 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0003497/0.3133, allocations: 173.1 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3134, allocations: 67.33 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.3135, allocations: 158.2 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.289e-05/0.3136, allocations: 33.7 kB / 1.172 GB, free: 1.469 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.3137, allocations: 112 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.3137, allocations: 27.64 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.3139, allocations: 77.66 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.314, allocations: 322.8 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.3142, allocations: 91.95 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.3145, allocations: 152.3 kB / 1.172 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.3148, allocations: 252.8 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3148, allocations: 8 kB / 1.173 GB, free: 380 kB / 0.92 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006371/0.3155, allocations: 402.3 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.492e-05/0.3156, allocations: 101.1 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3156, allocations: 0 / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.3156, allocations: 4 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.895e-05/0.3157, allocations: 15.92 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3157, allocations: 7.984 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.3161, allocations: 91.88 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.3162, allocations: 15.98 kB / 1.173 GB, free: 15.7 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.0001515/0.3163, allocations: 130.7 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.3164, allocations: 15.84 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.3164, allocations: 20.83 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3164, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3164, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3164, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.3166, allocations: 217.4 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3167, allocations: 11.86 kB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.661e-05/0.3167, allocations: 12 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3167, allocations: 0 / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.3167, allocations: 4 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3167, allocations: 0 / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3167, allocations: 4 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.317, allocations: 157 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.317, allocations: 96.8 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.3171, allocations: 7.984 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.011e-05/0.3171, allocations: 4 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.3172, allocations: 19.86 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.3172, allocations: 4 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.558e-05/0.3173, allocations: 121.4 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3173, allocations: 0 / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002942/0.3176, allocations: 48 kB / 1.174 GB, free: 14.75 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.00061/0.3182, allocations: 0.7021 MB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006203/0.3188, allocations: 390 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3188, allocations: 0 / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.646e-05/0.3189, allocations: 47.92 kB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.3192, allocations: 31.97 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.003205/0.3225, allocations: 2.244 MB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.3229, allocations: 0.7084 MB / 1.178 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.148e-05/0.323, allocations: 12.61 kB / 1.178 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.258e-05/0.323, allocations: 39.42 kB / 1.178 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of SimCode: time 6.41e-07/0.3231, allocations: 0 / 1.178 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.3449, allocations: 4.227 MB / 1.182 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.232, allocations: 14.61 kB / 1.182 GB, free: 6.254 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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