Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.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.Routing.Validation.RealExtractor,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor",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.006824/0.006824, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002058/0.002059, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.549/2.549, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 63.91 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9475/0.9491, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002331/0.9515, allocations: 1.343 MB / 1.167 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001894/0.9534, allocations: 1.551 MB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.9535, allocations: 3.938 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.9537, allocations: 39.55 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.9538, allocations: 75.36 kB / 1.169 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.9549, allocations: 0.4997 MB / 1.17 GB, free: 272 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006298/0.9556, allocations: 0.6834 MB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/0.9559, allocations: 168.8 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.9561, allocations: 259.3 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.9564, allocations: 243.2 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.783e-05/0.9565, allocations: 64 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.9567, allocations: 75.98 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 9.07e-05/0.9568, allocations: 87.62 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.957, allocations: 247 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.9576, allocations: 0.6775 MB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.9576, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9576, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.799e-06/0.9576, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001142/0.9588, allocations: 0.9465 MB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.9588, allocations: 12.62 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.622e-05/0.9589, allocations: 62.72 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.959, allocations: 48.47 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.9602, allocations: 471.9 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.9602, allocations: 24.94 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.9603, allocations: 40.38 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006044/0.9609, allocations: 325.1 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.9609, allocations: 8 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.961, allocations: 8 kB / 1.174 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.961, allocations: 8 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005874/0.9616, allocations: 250.1 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.963, allocations: 0.9042 MB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006409/0.9637, allocations: 385.1 kB / 1.175 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.9642, allocations: 285.6 kB / 1.176 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.9642, allocations: 15.97 kB / 1.176 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005616/0.9648, allocations: 322.9 kB / 1.176 GB, free: 9.477 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=44): time 4.007e-06/0.9648, allocations: 4 kB / 1.176 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of matching and sorting (n=44): time 0.001518/0.9663, allocations: 0.8304 MB / 1.177 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/0.9664, allocations: 187.9 kB / 1.177 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.9667, allocations: 296.4 kB / 1.177 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.572e-05/0.9668, allocations: 45.7 kB / 1.177 GB, free: 8.035 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.9669, allocations: 168.8 kB / 1.177 GB, free: 7.863 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.866e-05/0.967, allocations: 130.2 kB / 1.178 GB, free: 7.734 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.9672, allocations: 130.1 kB / 1.178 GB, free: 7.602 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.9674, allocations: 346.8 kB / 1.178 GB, free: 7.254 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005631/0.9679, allocations: 280.8 kB / 1.178 GB, free: 6.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000628/0.9686, allocations: 353.8 kB / 1.179 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.9697, allocations: 0.9167 MB / 1.18 GB, free: 5.566 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.9697, allocations: 0 / 1.18 GB, free: 5.566 MB / 0.9044 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.00162/0.9714, allocations: 0.9975 MB / 1.181 GB, free: 4.508 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.9715, allocations: 267.2 kB / 1.181 GB, free: 4.191 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.9715, allocations: 0 / 1.181 GB, free: 4.191 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.9716, allocations: 4 kB / 1.181 GB, free: 4.188 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.9718, allocations: 68.17 kB / 1.181 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/0.9719, allocations: 4 kB / 1.181 GB, free: 4.117 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006735/0.9726, allocations: 151.4 kB / 1.181 GB, free: 3.969 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.9727, allocations: 63.92 kB / 1.181 GB, free: 3.906 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,intPul1.booPul.y,$PRE.intPul1.booPul.y,intPul1.y,intPul.booPul.y,$PRE.intPul.booPul.y,intPul.y,pul1.booPul.y,$PRE.pul1.booPul.y,pul.booPul.y,$PRE.pul.booPul.y,conInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 9 * 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.0002981/0.973, allocations: 315.8 kB / 1.181 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.973, allocations: 35.62 kB / 1.181 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.596e-05/0.9731, allocations: 39.48 kB / 1.181 GB, free: 3.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.9731, allocations: 8 kB / 1.181 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9732, allocations: 0 / 1.181 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.9732, allocations: 3.984 kB / 1.181 GB, free: 3.469 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.9749, allocations: 1.206 MB / 1.183 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.9749, allocations: 0 / 1.183 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000231/0.9751, allocations: 63.95 kB / 1.183 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.9751, allocations: 3.938 kB / 1.183 GB, free: 2.105 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.9752, allocations: 12 kB / 1.183 GB, free: 2.094 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.9752, allocations: 3.938 kB / 1.183 GB, free: 2.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9752, allocations: 0 / 1.183 GB, free: 2.09 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.9762, allocations: 0.7665 MB / 1.183 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.136e-05/0.9763, allocations: 120.6 kB / 1.184 GB, free: 1.141 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.9764, allocations: 8 kB / 1.184 GB, free: 1.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.9766, allocations: 31.91 kB / 1.184 GB, free: 1.102 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.229e-05/0.9767, allocations: 35.95 kB / 1.184 GB, free: 1.066 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-05/0.9768, allocations: 51.88 kB / 1.184 GB, free: 1.016 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001753/0.9769, allocations: 195.1 kB / 1.184 GB, free: 0.8281 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.977, allocations: 0 / 1.184 GB, free: 0.8281 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004557/0.9774, allocations: 111.8 kB / 1.184 GB, free: 0.7148 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 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pul.booPul.y,pul1.booPul.y,intPul.y,intPul.booPul.y,intPul1.y,intPul1.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 5 * 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.001413/0.9788, allocations: 1.318 MB / 1.185 GB, free: 15.34 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001652/0.9805, allocations: 1.117 MB / 1.186 GB, free: 14.11 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.9805, allocations: 0 / 1.186 GB, free: 14.11 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005885/0.9811, allocations: 0.5208 MB / 1.187 GB, free: 13.53 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005664/0.9817, allocations: 94.75 kB / 1.187 GB, free: 13.44 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006693/0.9884, allocations: 4.645 MB / 1.191 GB, free: 8.605 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.9888, allocations: 0.8002 MB / 1.192 GB, free: 7.781 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002487/0.9891, allocations: 95.14 kB / 1.192 GB, free: 7.684 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.9892, allocations: 115.4 kB / 1.192 GB, free: 7.57 MB / 0.92 GB Notification: Performance of SimCode: time 6.01e-07/0.9892, allocations: 0 / 1.192 GB, free: 7.57 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0353/1.025, allocations: 9.83 MB / 1.202 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/9.027, allocations: 16.44 kB / 1.202 GB, free: 13.9 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches