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.006505/0.006505, allocations: 101.8 kB / 15.73 MB, free: 5.551 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.001737/0.001737, allocations: 194.9 kB / 16.67 MB, free: 5.477 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.271/2.271, allocations: 437.1 MB / 0.7106 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 59.91 kB / 1.018 GB, free: 9.863 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5761/0.5778, allocations: 151.6 MB / 1.166 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001622/0.5795, allocations: 0.8372 MB / 1.167 GB, free: 2.891 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.5809, allocations: 1.288 MB / 1.168 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.005e-05/0.5809, allocations: 0 / 1.168 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.581, allocations: 11.86 kB / 1.168 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.077e-05/0.581, allocations: 15.81 kB / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006768/0.5817, allocations: 327.8 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.582, allocations: 307.5 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.5821, allocations: 33.44 kB / 1.169 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.5823, allocations: 123.7 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.5824, allocations: 111.7 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/0.5825, allocations: 32 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.497e-05/0.5826, allocations: 39.98 kB / 1.169 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.682e-05/0.5826, allocations: 19.92 kB / 1.169 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.5827, allocations: 111.6 kB / 1.169 GB, free: 488 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.583, allocations: 262.8 kB / 1.17 GB, free: 228 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.583, allocations: 3.984 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.263e-06/0.583, allocations: 0 / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.583, allocations: 4 kB / 1.17 GB, free: 220 kB / 0.8887 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.0005652/0.5836, allocations: 0.5272 MB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.5836, allocations: 8.922 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.5837, allocations: 50.73 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.5837, allocations: 16.89 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.5838, allocations: 181.9 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.5839, allocations: 15.94 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.739e-05/0.5839, allocations: 19.98 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.5841, allocations: 89.59 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.5841, allocations: 0 / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.5841, allocations: 0 / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.5841, allocations: 4 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.985e-05/0.5842, allocations: 47.97 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.5848, allocations: 0.4965 MB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.585, allocations: 66.61 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.126e-05/0.585, allocations: 36.83 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.585, allocations: 4 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.5852, allocations: 116.2 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.5852, allocations: 0 / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0003017/0.5855, allocations: 170.9 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.5856, allocations: 67.33 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.5857, allocations: 158.2 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.5857, allocations: 29.7 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.5858, allocations: 120 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.5859, allocations: 31.75 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.586, allocations: 77.66 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.5861, allocations: 322.8 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.5863, allocations: 91.95 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.5865, allocations: 142 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.5868, allocations: 255 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.5868, allocations: 0 / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005656/0.5874, allocations: 409 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.5874, allocations: 101.1 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.5874, allocations: 0 / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.5875, allocations: 4 kB / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.887e-05/0.5875, allocations: 15.92 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.5875, allocations: 4 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.5879, allocations: 91.94 kB / 1.173 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.588, allocations: 15.98 kB / 1.173 GB, free: 12.14 MB / 0.9044 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.0001054/0.5881, allocations: 133.8 kB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.5881, allocations: 11.89 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.5882, allocations: 16.83 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.5882, allocations: 0 / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.5882, allocations: 4 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5882, allocations: 0 / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.5883, allocations: 217.5 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5884, allocations: 7.875 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.089e-05/0.5884, allocations: 15.98 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.5884, allocations: 0 / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.5884, allocations: 4 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5884, allocations: 0 / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5884, allocations: 0 / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.5886, allocations: 157.5 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.5887, allocations: 96.89 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.5887, allocations: 11.98 kB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.852e-05/0.5888, allocations: 4 kB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.5888, allocations: 15.92 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.5888, allocations: 7.938 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.328e-05/0.5889, allocations: 118.3 kB / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5889, allocations: 0 / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002354/0.5891, allocations: 48 kB / 1.174 GB, free: 11.19 MB / 0.9044 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.0004716/0.5896, allocations: 0.7111 MB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.5901, allocations: 382 kB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5901, allocations: 384 / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.643e-05/0.5902, allocations: 57.41 kB / 1.175 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.5904, allocations: 27.97 kB / 1.175 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.5927, allocations: 2.249 MB / 1.177 GB, free: 7.574 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.593, allocations: 0.7123 MB / 1.178 GB, free: 6.836 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.527e-05/0.5931, allocations: 12.61 kB / 1.178 GB, free: 6.824 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.214e-05/0.5931, allocations: 39.42 kB / 1.178 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of SimCode: time 1.81e-07/0.5931, allocations: 0 / 1.178 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.849/8.442, allocations: 4.232 MB / 1.182 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/19.11, allocations: 15.3 kB / 1.182 GB, free: 2.668 MB / 0.9044 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=400 --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