Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,fileNamePrefix="Buildings_9_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.001803/0.001803, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002122/0.002122, allocations: 190 kB / 16.13 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.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001523, allocations: 59.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7832/0.7847, allocations: 140.4 MB / 0.9491 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002418/0.7872, allocations: 1.103 MB / 0.9501 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.7888, allocations: 1.34 MB / 0.9514 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.251e-05/0.7889, allocations: 1.312 kB / 0.9514 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.7891, allocations: 13.27 kB / 0.9515 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.659e-05/0.7892, allocations: 31.56 kB / 0.9515 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006516/0.7898, allocations: 247.7 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002877/0.7901, allocations: 311.7 kB / 0.952 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.7903, allocations: 66.39 kB / 0.9521 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.7904, allocations: 119.6 kB / 0.9522 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.7906, allocations: 113.7 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.026e-05/0.7906, allocations: 15.69 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.519e-05/0.7907, allocations: 30.42 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.7908, allocations: 38.5 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.7909, allocations: 111.5 kB / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.7913, allocations: 343.9 kB / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.7913, allocations: 1.375 kB / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7913, allocations: 0 / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.391e-06/0.7913, allocations: 0 / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009597/0.7923, allocations: 0.638 MB / 0.9534 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.7923, allocations: 9.469 kB / 0.9535 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.529e-05/0.7924, allocations: 43.67 kB / 0.9535 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.481e-05/0.7925, allocations: 31.06 kB / 0.9535 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.7927, allocations: 259.9 kB / 0.9538 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.7928, allocations: 13.55 kB / 0.9538 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/0.7928, allocations: 19.84 kB / 0.9538 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004764/0.7933, allocations: 197.6 kB / 0.954 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.7933, allocations: 1.438 kB / 0.954 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.7934, allocations: 5.344 kB / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.7934, allocations: 2.875 kB / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005278/0.7939, allocations: 173.3 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009896/0.7949, allocations: 0.6304 MB / 0.9548 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004913/0.7954, allocations: 189.3 kB / 0.955 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.7957, allocations: 142.9 kB / 0.9551 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.7958, allocations: 2.188 kB / 0.9551 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.7962, allocations: 201.2 kB / 0.9553 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.7962, allocations: 0 / 0.9553 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.001057/0.7972, allocations: 461.6 kB / 0.9557 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.7973, allocations: 110.6 kB / 0.9558 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.7975, allocations: 212.1 kB / 0.956 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.7975, allocations: 29.73 kB / 0.9561 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.7976, allocations: 135.8 kB / 0.9562 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.7976, allocations: 51.36 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.7978, allocations: 64.8 kB / 0.9563 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.7978, allocations: 339.7 kB / 0.9566 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004002/0.7982, allocations: 153.1 kB / 0.9568 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.7987, allocations: 201 kB / 0.957 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00071/0.7994, allocations: 465.9 kB / 0.9574 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.7994, allocations: 0 / 0.9574 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001056/0.8005, allocations: 0.5298 MB / 0.9579 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.996e-05/0.8005, allocations: 131.1 kB / 0.9581 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.8006, allocations: 5.031 kB / 0.9581 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.8006, allocations: 2.719 kB / 0.9581 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.8008, allocations: 36.81 kB / 0.9581 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.8008, allocations: 1.875 kB / 0.9581 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004658/0.8012, allocations: 87.25 kB / 0.9582 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-05/0.8013, allocations: 36.02 kB / 0.9582 GB, free: 2.012 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,pul.booPul.y,$PRE.pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * 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.0001504/0.8015, allocations: 198.6 kB / 0.9584 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.8015, allocations: 25.61 kB / 0.9584 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.442e-05/0.8016, allocations: 26.28 kB / 0.9585 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.8016, allocations: 2.469 kB / 0.9585 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.8016, allocations: 3.984 kB / 0.9585 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.8016, allocations: 0.75 kB / 0.9585 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009427/0.8026, allocations: 0.6947 MB / 0.9591 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8026, allocations: 0 / 0.9591 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.8027, allocations: 42.36 kB / 0.9592 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.8027, allocations: 1.812 kB / 0.9592 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.8028, allocations: 2.125 kB / 0.9592 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.8028, allocations: 1.188 kB / 0.9592 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8028, allocations: 3.938 kB / 0.9592 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006975/0.8035, allocations: 464.1 kB / 0.9596 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.8035, allocations: 98.33 kB / 0.9597 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.8036, allocations: 2.344 kB / 0.9597 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.8038, allocations: 23.56 kB / 0.9598 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.8038, allocations: 19.59 kB / 0.9598 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.75e-05/0.8039, allocations: 29.44 kB / 0.9598 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001092/0.804, allocations: 152.4 kB / 0.9599 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.804, allocations: 0 / 0.9599 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003174/0.8043, allocations: 64.33 kB / 0.96 GB, free: 0.5938 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pul.booPul.y,pul1.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0009601/0.8053, allocations: 0.9978 MB / 0.961 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.8063, allocations: 0.5644 MB / 0.9615 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8063, allocations: 1.594 kB / 0.9615 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.8067, allocations: 245.8 kB / 0.9618 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.8071, allocations: 50.81 kB / 0.9618 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.8115, allocations: 3.032 MB / 0.9648 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.8118, allocations: 0.74 MB / 0.9655 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001307/0.8119, allocations: 46.34 kB / 0.9655 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/0.812, allocations: 52.14 kB / 0.9656 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.812, allocations: 1.094 kB / 0.9656 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.8278, allocations: 5.237 MB / 0.9707 GB, free: 9.543 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.828, allocations: 215 kB / 0.9709 GB, free: 9.285 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.642, allocations: 0 / 0.9709 GB, free: 9.285 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches