Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Routing.Validation.IntegerExtractor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor",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.001199/0.0012, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001269/0.001269, allocations: 190.6 kB / 16.25 MB, free: 6.645 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.459/1.459, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.152/3.152, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002564/0.002565, allocations: 64.33 kB / 0.8987 GB, free: 37.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4089, allocations: 157.4 MB / 1.052 GB, free: 8.641 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor): time 0.003105/0.412, allocations: 1.206 MB / 1.054 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002463/0.4145, allocations: 1.513 MB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.4148, allocations: 4 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.415, allocations: 23.73 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.4152, allocations: 39.7 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.4165, allocations: 453.9 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008186/0.4174, allocations: 0.6128 MB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.4177, allocations: 156.4 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000378/0.4181, allocations: 227.4 kB / 1.057 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/0.4184, allocations: 187.3 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.4186, allocations: 60 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.4188, allocations: 72 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.419, allocations: 83.62 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.4193, allocations: 223.1 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007511/0.42, allocations: 0.6117 MB / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.42, allocations: 0 / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.136e-06/0.4201, allocations: 0 / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.36e-05/0.4201, allocations: 7.938 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001288/0.4214, allocations: 0.7395 MB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.4214, allocations: 12.56 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.183e-05/0.4215, allocations: 62.66 kB / 1.059 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.4217, allocations: 48.47 kB / 1.059 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.4228, allocations: 400 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/0.4229, allocations: 28.8 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-05/0.4229, allocations: 32.38 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/0.4234, allocations: 259.5 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4234, allocations: 0 / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.4235, allocations: 12 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.4235, allocations: 4 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.4237, allocations: 157.6 kB / 1.059 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.4253, allocations: 0.8569 MB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.4256, allocations: 222.7 kB / 1.06 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.426, allocations: 200.8 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.426, allocations: 0 / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/0.4264, allocations: 252.4 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.4264, allocations: 4 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.0007433/0.4271, allocations: 430.9 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.4272, allocations: 114.8 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.4276, allocations: 316.4 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.4276, allocations: 41.7 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.4278, allocations: 188.5 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/0.4279, allocations: 67.19 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/0.4281, allocations: 145.9 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4283, allocations: 338.8 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.4286, allocations: 208.7 kB / 1.063 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.4291, allocations: 323.4 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006326/0.4297, allocations: 0.5311 MB / 1.064 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.4298, allocations: 0 / 1.064 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001168/0.4309, allocations: 0.7326 MB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.096e-05/0.431, allocations: 122.8 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.4311, allocations: 11.97 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4311, allocations: 4 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.4313, allocations: 59.86 kB / 1.064 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.4313, allocations: 11.92 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006605/0.432, allocations: 135.5 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4321, allocations: 67.92 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,conInt.y,conInt3.y,conInt2.y,extIndInt.u[4],extIndInt.u[1],extIndInt1.u[4],extIndInt2.u[4],extIndInt3.u[4],extIndInt4.u[4],extIndInt1.u[1],extIndInt2.u[1],extIndInt3.u[1],extIndInt4.u[1],intPul3.booPul.y,$PRE.intPul3.booPul.y,intPul3.y,intPul2.booPul.y,$PRE.intPul2.booPul.y,intPul2.y,intPul1.booPul.y,$PRE.intPul1.booPul.y,intPul.booPul.y,$PRE.intPul.booPul.y,extIndInt4.y,extIndInt4.u[3],extIndInt4.u[2],extIndInt3.y,extIndInt3.u[3],extIndInt3.u[2],extIndInt2.y,extIndInt2.u[3],extIndInt2.u[2],extIndInt1.y,extIndInt1.u[3],extIndInt1.u[2],extIndInt.u[3],extIndInt.u[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 4 * 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.0002424/0.4324, allocations: 189.6 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.4324, allocations: 31.62 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/0.433, allocations: 365.2 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.433, allocations: 11.88 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.433, allocations: 0 / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.433, allocations: 3.938 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009106/0.4339, allocations: 0.7486 MB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.434, allocations: 7.922 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.4341, allocations: 35.92 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.4341, allocations: 0 / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.4341, allocations: 12 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4341, allocations: 0 / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4341, allocations: 0 / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/0.4346, allocations: 431.8 kB / 1.066 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.762e-05/0.4347, allocations: 112.5 kB / 1.066 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.4348, allocations: 15.98 kB / 1.067 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.4349, allocations: 12 kB / 1.067 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.435, allocations: 19.97 kB / 1.067 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.435, allocations: 12 kB / 1.067 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002108/0.4352, allocations: 223 kB / 1.067 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.7e-07/0.4352, allocations: 0 / 1.067 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004446/0.4357, allocations: 91.94 kB / 1.067 GB, free: 9.289 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: 32 (extIndInt.u[2],extIndInt.u[3],$cse1,$cse2,$cse3,$cse4,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,extIndInt1.u[2],extIndInt1.u[3],extIndInt1.y,extIndInt2.u[2],extIndInt2.u[3],extIndInt2.y,extIndInt3.u[2],extIndInt3.u[3],extIndInt3.y,extIndInt4.u[2],extIndInt4.u[3],extIndInt4.y,intPul.booPul.y,intPul1.booPul.y,intPul2.y,intPul2.booPul.y,intPul3.y,intPul3.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008202/0.4365, allocations: 0.9913 MB / 1.068 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009897/0.4375, allocations: 0.7086 MB / 1.069 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4375, allocations: 0 / 1.069 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.4377, allocations: 139.9 kB / 1.069 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00052/0.4382, allocations: 83.33 kB / 1.069 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/0.4432, allocations: 3.898 MB / 1.073 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.4436, allocations: 0.7843 MB / 1.073 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001943/0.4438, allocations: 75.22 kB / 1.073 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.4439, allocations: 115.4 kB / 1.073 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of SimCode: time 7.01e-07/0.4439, allocations: 0 / 1.073 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.4677, allocations: 8.25 MB / 1.082 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.4679, allocations: 224.6 kB / 1.082 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.758, allocations: 0 / 1.082 GB, free: 9.934 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches