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.02099/0.02099, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.002552/0.002552, allocations: 198.4 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 2.842/2.842, allocations: 222.9 MB / 240.4 MB, free: 4.336 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 5.397/5.397, allocations: 437.1 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003127/0.003126, allocations: 63.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6586/0.6618, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003234/0.6651, allocations: 0.8358 MB / 1.167 GB, free: 6.434 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003205/0.6683, allocations: 1.288 MB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.6685, allocations: 0 / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 7.039e-05/0.6686, allocations: 11.81 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.6688, allocations: 23.8 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001829/0.6706, allocations: 323.1 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0007197/0.6714, allocations: 315.5 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.6716, allocations: 33.44 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.6719, allocations: 115.8 kB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.6723, allocations: 115.6 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.661e-05/0.6724, allocations: 28 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.6726, allocations: 43.92 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.324e-05/0.6726, allocations: 23.92 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.6729, allocations: 99.67 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006269/0.6735, allocations: 263.4 kB / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.6736, allocations: 0 / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.705e-06/0.6736, allocations: 0 / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.717e-06/0.6736, allocations: 0 / 1.17 GB, free: 3.762 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.001309/0.6749, allocations: 0.535 MB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 8.987e-05/0.675, allocations: 15.97 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.6751, allocations: 38.75 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.6753, allocations: 20.89 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.6758, allocations: 184.7 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.41e-05/0.6759, allocations: 19.94 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/0.676, allocations: 16 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.6764, allocations: 89.64 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.6764, allocations: 4 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.6765, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.6765, allocations: 4 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.6768, allocations: 57.92 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.6783, allocations: 496.5 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.6788, allocations: 66.5 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.6789, allocations: 36.97 kB / 1.171 GB, free: 2.02 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.6789, allocations: 4 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.6793, allocations: 118.3 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 7.393e-06/0.6793, allocations: 3.984 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0006889/0.68, allocations: 165.6 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.6801, allocations: 59.41 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.6804, allocations: 160.4 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.822e-05/0.6805, allocations: 37.69 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.6807, allocations: 112.1 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.6807, allocations: 31.73 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002597/0.681, allocations: 73.67 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002805/0.6813, allocations: 326.8 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004257/0.6818, allocations: 95.94 kB / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/0.6823, allocations: 153.8 kB / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.6829, allocations: 244.4 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.6829, allocations: 0 / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001404/0.6844, allocations: 402.4 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.6845, allocations: 109 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.6846, allocations: 0 / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.6846, allocations: 4 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.6848, allocations: 8 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.6848, allocations: 4 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009544/0.6858, allocations: 91.94 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.518e-05/0.6859, allocations: 15.98 kB / 1.173 GB, free: 15.68 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.0002793/0.6862, allocations: 141.8 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.6862, allocations: 11.89 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/0.6863, allocations: 16.84 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.6863, allocations: 4 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.629e-06/0.6864, allocations: 0 / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.6864, allocations: 3.984 kB / 1.173 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000392/0.6868, allocations: 217.4 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.6868, allocations: 7.938 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.463e-05/0.6869, allocations: 8 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.6869, allocations: 7.984 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.687, allocations: 4 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.687, allocations: 0 / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.687, allocations: 3.938 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.6875, allocations: 161 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.6876, allocations: 88.95 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.6877, allocations: 11.94 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.699e-05/0.6878, allocations: 0 / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/0.6878, allocations: 11.98 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.6879, allocations: 11.92 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001778/0.688, allocations: 117.9 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6881, allocations: 8 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005708/0.6887, allocations: 48 kB / 1.174 GB, free: 14.72 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.001163/0.6898, allocations: 0.7081 MB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001173/0.691, allocations: 386.4 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.6911, allocations: 4.062 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.6913, allocations: 55.91 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.6918, allocations: 26.02 kB / 1.175 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005653/0.6975, allocations: 2.244 MB / 1.177 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.6981, allocations: 0.7084 MB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001143/0.6983, allocations: 16.59 kB / 1.178 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.6984, allocations: 39.42 kB / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of SimCode: time 1.022e-06/0.6984, allocations: 0 / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07504/0.7735, allocations: 4.23 MB / 1.182 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/18.55, allocations: 15.16 kB / 1.182 GB, free: 6.203 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