Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.RealExtractor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,fileNamePrefix="Buildings_latest_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.007573/0.007573, allocations: 105.5 kB / 15.73 MB, free: 5.992 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.001763/0.001763, allocations: 194.8 kB / 16.67 MB, free: 5.914 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.805/2.805, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 63.91 kB / 1.054 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3477, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002918/0.3506, allocations: 1.341 MB / 1.209 GB, free: 8.84 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0025/0.3532, allocations: 1.553 MB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.3534, allocations: 4 kB / 1.21 GB, free: 7.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.3536, allocations: 31.55 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.354, allocations: 59.44 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.3555, allocations: 0.5049 MB / 1.211 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001092/0.3566, allocations: 0.6911 MB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.3571, allocations: 168.8 kB / 1.212 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.3576, allocations: 251.3 kB / 1.212 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004271/0.358, allocations: 243.1 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.3582, allocations: 64 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.3584, allocations: 83.92 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.3585, allocations: 75.77 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003391/0.3588, allocations: 258.9 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000796/0.3596, allocations: 0.6736 MB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3596, allocations: 0 / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3597, allocations: 4 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.67e-05/0.3597, allocations: 0 / 1.213 GB, free: 4.191 MB / 0.9669 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.001486/0.3612, allocations: 0.9467 MB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3612, allocations: 12.62 kB / 1.214 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.131e-05/0.3613, allocations: 58.73 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.3615, allocations: 48.47 kB / 1.214 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.3629, allocations: 475.9 kB / 1.215 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.3629, allocations: 24.94 kB / 1.215 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.363, allocations: 44.31 kB / 1.215 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/0.3637, allocations: 325.1 kB / 1.215 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3637, allocations: 4 kB / 1.215 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.3638, allocations: 8 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.3638, allocations: 11.94 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006328/0.3644, allocations: 254 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.3661, allocations: 0.9158 MB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006307/0.3668, allocations: 382.4 kB / 1.216 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.3673, allocations: 277.5 kB / 1.217 GB, free: 228 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3673, allocations: 4 kB / 1.217 GB, free: 224 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005941/0.3679, allocations: 319 kB / 1.217 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=44): time 3.066e-06/0.3679, allocations: 0 / 1.217 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=44): time 0.001632/0.3696, allocations: 0.8332 MB / 1.218 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.3697, allocations: 195.9 kB / 1.218 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.3701, allocations: 284.5 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.219e-05/0.3702, allocations: 49.69 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3703, allocations: 164.8 kB / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.3705, allocations: 130.2 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.3707, allocations: 142 kB / 1.219 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3709, allocations: 346.8 kB / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/0.3715, allocations: 272.8 kB / 1.219 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.3722, allocations: 365.8 kB / 1.22 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.3733, allocations: 0.9129 MB / 1.221 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3734, allocations: 0 / 1.221 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001629/0.375, allocations: 0.9939 MB / 1.222 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.3752, allocations: 259.3 kB / 1.222 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3752, allocations: 0 / 1.222 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3752, allocations: 4 kB / 1.222 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.3755, allocations: 67.89 kB / 1.222 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.3755, allocations: 7.938 kB / 1.222 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007795/0.3763, allocations: 155.4 kB / 1.222 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.3764, allocations: 67.91 kB / 1.222 GB, free: 10.32 MB / 0.9825 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.0003116/0.3768, allocations: 326.1 kB / 1.222 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.3768, allocations: 35.62 kB / 1.222 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.623e-05/0.3769, allocations: 39.48 kB / 1.223 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.377, allocations: 4 kB / 1.223 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.377, allocations: 0 / 1.223 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.377, allocations: 3.984 kB / 1.223 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.3787, allocations: 1.188 MB / 1.224 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3787, allocations: 0 / 1.224 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.379, allocations: 71.89 kB / 1.224 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.379, allocations: 0 / 1.224 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.379, allocations: 15.98 kB / 1.224 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.379, allocations: 3.938 kB / 1.224 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.379, allocations: 4 kB / 1.224 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3801, allocations: 0.7665 MB / 1.225 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-05/0.3802, allocations: 116.5 kB / 1.225 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.3803, allocations: 12 kB / 1.225 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.3805, allocations: 27.91 kB / 1.225 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.3806, allocations: 35.95 kB / 1.225 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.252e-05/0.3807, allocations: 55.88 kB / 1.225 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002178/0.3809, allocations: 199.1 kB / 1.225 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3809, allocations: 0 / 1.225 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004666/0.3814, allocations: 107.9 kB / 1.225 GB, free: 7.133 MB / 0.9825 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.001504/0.3829, allocations: 1.326 MB / 1.226 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.3844, allocations: 1.113 MB / 1.227 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3845, allocations: 0 / 1.227 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.3851, allocations: 0.5163 MB / 1.228 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005467/0.3856, allocations: 90 kB / 1.228 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/0.3924, allocations: 4.639 MB / 1.233 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3928, allocations: 0.804 MB / 1.233 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002464/0.3931, allocations: 87.2 kB / 1.233 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.3933, allocations: 119.4 kB / 1.234 GB, free: 14 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.3933, allocations: 0 / 1.234 GB, free: 14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.4235, allocations: 10.05 MB / 1.243 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.246, allocations: 5.625 kB / 1.243 GB, free: 4.145 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches