Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,fileNamePrefix="Buildings_11_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.001847/0.001847, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.455/1.455, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.872/2.872, allocations: 469.8 MB / 0.7424 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 66.02 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2673, allocations: 159.2 MB / 1.064 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.002697/0.27, allocations: 1.339 MB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0021/0.2721, allocations: 1.548 MB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.134e-05/0.2722, allocations: 11.94 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.2723, allocations: 31.55 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.2725, allocations: 71.36 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.2736, allocations: 495.8 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006964/0.2743, allocations: 0.6755 MB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.2746, allocations: 169.1 kB / 1.068 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.2749, allocations: 255.3 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.2752, allocations: 223.1 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.2753, allocations: 68 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.2754, allocations: 79.98 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.197e-05/0.2755, allocations: 71.77 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.2759, allocations: 250.9 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000781/0.2767, allocations: 0.6699 MB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.2767, allocations: 0 / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.21e-07/0.2767, allocations: 0 / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2767, allocations: 0 / 1.07 GB, free: 8.309 MB / 0.8262 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.001441/0.2781, allocations: 0.9429 MB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2782, allocations: 8.031 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.8e-05/0.2783, allocations: 58.73 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.2784, allocations: 56.41 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.2798, allocations: 471.8 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/0.2799, allocations: 32.92 kB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-05/0.2799, allocations: 40.38 kB / 1.071 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.2807, allocations: 321.1 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2807, allocations: 0 / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.2807, allocations: 16 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.2807, allocations: 4 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007011/0.2815, allocations: 254 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.2832, allocations: 0.9237 MB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007734/0.2839, allocations: 382.6 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.2846, allocations: 286 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.2846, allocations: 4 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000665/0.2853, allocations: 331 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 2.084e-06/0.2853, allocations: 0 / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001749/0.2871, allocations: 0.8381 MB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.2872, allocations: 187.9 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.2876, allocations: 292.5 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.2878, allocations: 41.7 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.2879, allocations: 164.8 kB / 1.075 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.288, allocations: 126.2 kB / 1.075 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002559/0.2883, allocations: 138.1 kB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.2885, allocations: 350.8 kB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006364/0.2891, allocations: 268.8 kB / 1.076 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007195/0.2899, allocations: 369.8 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.2913, allocations: 0.9128 MB / 1.077 GB, free: 92 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2913, allocations: 0 / 1.077 GB, free: 92 kB / 0.8262 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001806/0.2931, allocations: 0.9939 MB / 1.078 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.2933, allocations: 259.2 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.2933, allocations: 4 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.2933, allocations: 7.984 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.2936, allocations: 63.91 kB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2936, allocations: 11.92 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.2944, allocations: 135.6 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.2945, allocations: 67.92 kB / 1.079 GB, free: 14.44 MB / 0.8419 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.0003515/0.2949, allocations: 326.6 kB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.2949, allocations: 43.47 kB / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.671e-05/0.295, allocations: 43.48 kB / 1.079 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.295, allocations: 4 kB / 1.079 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2951, allocations: 0 / 1.079 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2951, allocations: 3.984 kB / 1.079 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.297, allocations: 1.194 MB / 1.08 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.297, allocations: 3.984 kB / 1.08 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.2973, allocations: 59.89 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2973, allocations: 8 kB / 1.081 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.2973, allocations: 12 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.2973, allocations: 7.938 kB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2974, allocations: 0 / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.2986, allocations: 0.7574 MB / 1.081 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-05/0.2987, allocations: 116.5 kB / 1.081 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.2988, allocations: 11.98 kB / 1.081 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.299, allocations: 31.91 kB / 1.081 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2992, allocations: 43.91 kB / 1.081 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/0.2992, allocations: 47.88 kB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000208/0.2994, allocations: 207.1 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2994, allocations: 0 / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000404/0.2999, allocations: 96 kB / 1.082 GB, free: 11.25 MB / 0.8419 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.001632/0.3015, allocations: 1.322 MB / 1.083 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001882/0.3034, allocations: 1.21 MB / 1.084 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3034, allocations: 4 kB / 1.084 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006753/0.3041, allocations: 0.5128 MB / 1.085 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.3047, allocations: 92.83 kB / 1.085 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007227/0.3119, allocations: 4.651 MB / 1.089 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.3124, allocations: 0.7963 MB / 1.09 GB, free: 2.203 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002492/0.3127, allocations: 95.14 kB / 1.09 GB, free: 2.105 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.3128, allocations: 115.4 kB / 1.09 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.3129, allocations: 4 kB / 1.09 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.3477, allocations: 9.738 MB / 1.1 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.213, allocations: 8.891 kB / 1.1 GB, free: 8.41 MB / 0.8575 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches