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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006766/0.006766, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001802/0.001802, allocations: 198.7 kB / 16.68 MB, free: 5.977 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.749/2.749, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 67.89 kB / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2867, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002413/0.2891, allocations: 1.339 MB / 1.243 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001915/0.2911, allocations: 1.54 MB / 1.245 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.634e-05/0.2912, allocations: 4 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.2913, allocations: 39.55 kB / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.2914, allocations: 59.42 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.2925, allocations: 0.5007 MB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0007051/0.2932, allocations: 0.6872 MB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.2935, allocations: 168.9 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.2938, allocations: 251.3 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003009/0.2941, allocations: 251.1 kB / 1.247 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2942, allocations: 64 kB / 1.247 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.2944, allocations: 83.92 kB / 1.247 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.001e-05/0.2945, allocations: 79.75 kB / 1.247 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002544/0.2947, allocations: 250.9 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006777/0.2954, allocations: 0.6772 MB / 1.248 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.2954, allocations: 7.938 kB / 1.248 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2954, allocations: 0 / 1.248 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.2954, allocations: 0 / 1.248 GB, free: 3.797 MB / 0.9981 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.001219/0.2967, allocations: 0.9504 MB / 1.249 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2967, allocations: 12.03 kB / 1.249 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.65e-05/0.2968, allocations: 54.73 kB / 1.249 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.2969, allocations: 52.69 kB / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.2981, allocations: 484 kB / 1.249 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.2982, allocations: 24.94 kB / 1.249 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.219e-05/0.2983, allocations: 40.38 kB / 1.249 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/0.2989, allocations: 329 kB / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2989, allocations: 4 kB / 1.25 GB, free: 1.707 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.299, allocations: 11.98 kB / 1.25 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.299, allocations: 8 kB / 1.25 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006427/0.2996, allocations: 250 kB / 1.25 GB, free: 1.445 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.3011, allocations: 0.9083 MB / 1.251 GB, free: 496 kB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/0.3018, allocations: 385.4 kB / 1.251 GB, free: 104 kB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4694/0.7712, allocations: 276 kB / 1.251 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.7712, allocations: 5.344 kB / 1.251 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006426/0.7719, allocations: 318.5 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=44): time 3.066e-06/0.7719, allocations: 4.594 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of matching and sorting (n=44): time 0.001573/0.7735, allocations: 0.8308 MB / 1.252 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.7736, allocations: 193.1 kB / 1.253 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.7738, allocations: 287.7 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.195e-05/0.7739, allocations: 43.02 kB / 1.253 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.966e-05/0.774, allocations: 171.9 kB / 1.253 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.468e-05/0.7741, allocations: 132 kB / 1.253 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.7743, allocations: 134.4 kB / 1.253 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.7744, allocations: 350.6 kB / 1.254 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005732/0.7749, allocations: 278 kB / 1.254 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006144/0.7756, allocations: 361.9 kB / 1.254 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.7766, allocations: 0.9149 MB / 1.255 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7766, allocations: 0.8438 kB / 1.255 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001498/0.7781, allocations: 0.9978 MB / 1.256 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.548e-05/0.7782, allocations: 263.4 kB / 1.256 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.7782, allocations: 2.406 kB / 1.256 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.7782, allocations: 4.594 kB / 1.256 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.7785, allocations: 68.14 kB / 1.257 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.7785, allocations: 8.594 kB / 1.257 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/0.7792, allocations: 142 kB / 1.257 GB, free: 12.08 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.7794, allocations: 67.89 kB / 1.257 GB, free: 12.08 MB / 0.9981 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.0001933/0.7796, allocations: 317.8 kB / 1.257 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/0.7796, allocations: 43.89 kB / 1.257 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-05/0.7797, allocations: 41.56 kB / 1.257 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.7797, allocations: 8.516 kB / 1.257 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.7797, allocations: 2.688 kB / 1.257 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.7797, allocations: 2.25 kB / 1.257 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.7813, allocations: 1.196 MB / 1.258 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.7813, allocations: 4.641 kB / 1.258 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.7815, allocations: 65.53 kB / 1.258 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.7815, allocations: 5.719 kB / 1.258 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.7816, allocations: 13.02 kB / 1.258 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.7816, allocations: 5.719 kB / 1.258 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7816, allocations: 0 / 1.258 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.7826, allocations: 0.7623 MB / 1.259 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.476e-05/0.7827, allocations: 113.4 kB / 1.259 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.7827, allocations: 12.7 kB / 1.259 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.7829, allocations: 31.81 kB / 1.259 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.434e-05/0.783, allocations: 36.55 kB / 1.259 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.898e-05/0.7831, allocations: 51.31 kB / 1.259 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001604/0.7833, allocations: 201.4 kB / 1.26 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7833, allocations: 0 / 1.26 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003991/0.7837, allocations: 111.2 kB / 1.26 GB, free: 10.32 MB / 0.9981 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.001208/0.7849, allocations: 1.328 MB / 1.261 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001306/0.7862, allocations: 1.111 MB / 1.262 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7862, allocations: 0 / 1.262 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005051/0.7867, allocations: 0.519 MB / 1.263 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.7872, allocations: 97.89 kB / 1.263 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.7923, allocations: 4.645 MB / 1.267 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.7925, allocations: 0.7962 MB / 1.268 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002034/0.7927, allocations: 93.52 kB / 1.268 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.7929, allocations: 115.1 kB / 1.268 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of SimCode: time 3.8e-07/0.7929, allocations: 3.5 kB / 1.268 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.258/2.05, allocations: 9.831 MB / 1.278 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.885/11.94, allocations: 13.91 kB / 1.278 GB, free: 3.824 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=400 --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