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.007129/0.007129, allocations: 97.36 kB / 15.73 MB, free: 5.988 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.001574/0.001574, allocations: 187.9 kB / 16.67 MB, free: 5.918 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.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.655/2.655, allocations: 437.1 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2905, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002557/0.2931, allocations: 1.333 MB / 1.167 GB, free: 5.965 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002075/0.2952, allocations: 1.553 MB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.2954, allocations: 3.938 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2956, allocations: 39.61 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.2958, allocations: 71.38 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.2971, allocations: 0.4974 MB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0007849/0.2979, allocations: 0.695 MB / 1.17 GB, free: 3.102 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.2982, allocations: 168.9 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003497/0.2985, allocations: 251.3 kB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.2989, allocations: 247.1 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.299, allocations: 64 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.2992, allocations: 79.98 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.911e-05/0.2993, allocations: 83.64 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002684/0.2996, allocations: 247 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006716/0.3003, allocations: 0.6772 MB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3003, allocations: 4 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3003, allocations: 0 / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.288e-05/0.3003, allocations: 0 / 1.172 GB, free: 1.297 MB / 0.92 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.001325/0.3016, allocations: 0.958 MB / 1.173 GB, free: 236 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3017, allocations: 12.03 kB / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.026e-05/0.3017, allocations: 62.72 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.3019, allocations: 56.59 kB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.3032, allocations: 476.1 kB / 1.174 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.3032, allocations: 24.94 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.583e-05/0.3033, allocations: 48.34 kB / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.304, allocations: 325.1 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.304, allocations: 4 kB / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.3041, allocations: 8 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3041, allocations: 8 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.3047, allocations: 250 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.3063, allocations: 0.9044 MB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/0.307, allocations: 382.5 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004786/0.3075, allocations: 292.7 kB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3075, allocations: 4 kB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005707/0.3081, allocations: 319 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=44): time 2.915e-06/0.3081, allocations: 4 kB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=44): time 0.001535/0.3096, allocations: 0.8306 MB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.3097, allocations: 191.9 kB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.3101, allocations: 296.5 kB / 1.177 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.125e-05/0.3101, allocations: 45.7 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.3103, allocations: 165 kB / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3104, allocations: 138.9 kB / 1.178 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/0.3107, allocations: 130.1 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3108, allocations: 346.8 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.3114, allocations: 280.8 kB / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/0.3121, allocations: 361.8 kB / 1.179 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.3133, allocations: 0.9167 MB / 1.18 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3133, allocations: 0 / 1.18 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001592/0.3149, allocations: 0.9939 MB / 1.181 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.3151, allocations: 259.3 kB / 1.181 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3151, allocations: 0 / 1.181 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.3151, allocations: 4.281 kB / 1.181 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/0.3154, allocations: 71.89 kB / 1.181 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.3154, allocations: 7.938 kB / 1.181 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007252/0.3161, allocations: 151.6 kB / 1.181 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.3162, allocations: 63.92 kB / 1.181 GB, free: 7.395 MB / 0.9356 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.000295/0.3165, allocations: 310.2 kB / 1.181 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.3166, allocations: 47.69 kB / 1.181 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.178e-05/0.3167, allocations: 43.48 kB / 1.181 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3167, allocations: 7.938 kB / 1.181 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3167, allocations: 0 / 1.181 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3167, allocations: 0 / 1.181 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.3185, allocations: 1.195 MB / 1.183 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3185, allocations: 0 / 1.183 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.3187, allocations: 71.89 kB / 1.183 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3187, allocations: 0 / 1.183 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.3188, allocations: 19.97 kB / 1.183 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3188, allocations: 3.938 kB / 1.183 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3188, allocations: 0 / 1.183 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.3199, allocations: 0.7667 MB / 1.183 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.32, allocations: 116.8 kB / 1.184 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.32, allocations: 8 kB / 1.184 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.3203, allocations: 35.91 kB / 1.184 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.3204, allocations: 35.95 kB / 1.184 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.458e-05/0.3204, allocations: 51.88 kB / 1.184 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001771/0.3206, allocations: 195.1 kB / 1.184 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.8e-07/0.3206, allocations: 0 / 1.184 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004363/0.3211, allocations: 115.9 kB / 1.184 GB, free: 4.191 MB / 0.9356 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.001385/0.3224, allocations: 1.315 MB / 1.185 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001461/0.3239, allocations: 1.117 MB / 1.186 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3239, allocations: 0 / 1.186 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005659/0.3245, allocations: 0.5169 MB / 1.187 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005532/0.3251, allocations: 96.39 kB / 1.187 GB, free: 0.918 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006311/0.3314, allocations: 4.657 MB / 1.192 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.3318, allocations: 0.7924 MB / 1.192 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000225/0.332, allocations: 95.19 kB / 1.192 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.3322, allocations: 111.4 kB / 1.193 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of SimCode: time 5.91e-07/0.3322, allocations: 0 / 1.193 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.3604, allocations: 9.834 MB / 1.202 GB, free: 1.402 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.389/8.749, allocations: 14.41 kB / 1.202 GB, free: 1.395 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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