Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",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.007855/0.007855, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001887/0.001887, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.537/2.537, allocations: 469.4 MB / 0.7422 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 60.12 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2847, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002561/0.2873, allocations: 1.404 MB / 1.221 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003063/0.2904, allocations: 2.666 MB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.415e-05/0.2905, allocations: 4 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.2921, allocations: 0.5862 MB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.241e-05/0.2921, allocations: 23.84 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.75e-06/0.2921, allocations: 4 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.2924, allocations: 151 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.421e-05/0.2924, allocations: 32.39 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.865e-05/0.2925, allocations: 71.7 kB / 1.225 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.2926, allocations: 83.52 kB / 1.225 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.2927, allocations: 0 / 1.225 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.2937, allocations: 463.3 kB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.479e-05/0.2937, allocations: 39.77 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.229e-05/0.2938, allocations: 103.4 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.2945, allocations: 446 kB / 1.226 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2945, allocations: 0 / 1.226 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2945, allocations: 0 / 1.226 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.2945, allocations: 0 / 1.226 GB, free: 8.602 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007141/0.2952, allocations: 0.5603 MB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2953, allocations: 12.03 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.934e-05/0.2953, allocations: 106 kB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.2955, allocations: 104 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.2957, allocations: 302.4 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.2958, allocations: 154.9 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.2958, allocations: 150.9 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.606e-05/0.2959, allocations: 117.5 kB / 1.227 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.2959, allocations: 79.22 kB / 1.227 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.296, allocations: 150.6 kB / 1.227 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.953e-05/0.296, allocations: 150.6 kB / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.426e-05/0.296, allocations: 150.6 kB / 1.228 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00033/0.2964, allocations: 0.5445 MB / 1.228 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.158e-05/0.2965, allocations: 169.1 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.766e-05/0.2965, allocations: 80.14 kB / 1.228 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.2965, allocations: 75.28 kB / 1.228 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.2966, allocations: 117.8 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 9.32e-07/0.2966, allocations: 0 / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 0.0001857/0.2968, allocations: 61.45 kB / 1.229 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.2968, allocations: 126.7 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003931/0.2972, allocations: 433.3 kB / 1.229 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.2972, allocations: 25.7 kB / 1.229 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.2973, allocations: 132.6 kB / 1.229 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-06/0.2973, allocations: 3.938 kB / 1.229 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.857e-05/0.2974, allocations: 97.66 kB / 1.229 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2975, allocations: 338.8 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2976, allocations: 96.5 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.2978, allocations: 165.3 kB / 1.23 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2981, allocations: 309.6 kB / 1.23 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2981, allocations: 0 / 1.23 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004608/0.2985, allocations: 325.1 kB / 1.231 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2986, allocations: 7.938 kB / 1.231 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2986, allocations: 4 kB / 1.231 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2986, allocations: 0 / 1.231 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.526e-06/0.2986, allocations: 4 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.2986, allocations: 8 kB / 1.231 GB, free: 3.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.2987, allocations: 47.73 kB / 1.231 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.2988, allocations: 11.98 kB / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0001925/0.299, allocations: 244.2 kB / 1.231 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.299, allocations: 128.7 kB / 1.231 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.739e-05/0.2991, allocations: 118.9 kB / 1.231 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/0.2992, allocations: 180.3 kB / 1.231 GB, free: 2.5 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.167e-05/0.2992, allocations: 184.2 kB / 1.231 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.891e-05/0.2993, allocations: 180.3 kB / 1.232 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.2995, allocations: 469.2 kB / 1.232 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.877e-05/0.2996, allocations: 109.1 kB / 1.232 GB, free: 1.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.005e-05/0.2996, allocations: 109 kB / 1.232 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.677e-05/0.2997, allocations: 192.1 kB / 1.232 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.2997, allocations: 176.3 kB / 1.233 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.064e-05/0.2998, allocations: 180.3 kB / 1.233 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.685e-05/0.2998, allocations: 180.2 kB / 1.233 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.3, allocations: 331.6 kB / 1.233 GB, free: 304 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.684e-05/0.3001, allocations: 201.9 kB / 1.233 GB, free: 76 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.408e-05/0.3002, allocations: 184.4 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3003, allocations: 108.9 kB / 1.234 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.3003, allocations: 180.3 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.3004, allocations: 108.9 kB / 1.234 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00024/0.3006, allocations: 287 kB / 1.234 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.382e-06/0.3006, allocations: 4 kB / 1.234 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000361/0.301, allocations: 87.81 kB / 1.234 GB, free: 15.11 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005687/0.3016, allocations: 0.9568 MB / 1.235 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000197/0.3018, allocations: 168.2 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3018, allocations: 4.062 kB / 1.236 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.843e-06/0.3018, allocations: 0 / 1.236 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.3022, allocations: 461.1 kB / 1.236 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.3047, allocations: 2.952 MB / 1.239 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.305, allocations: 0.7782 MB / 1.24 GB, free: 9.617 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.363e-05/0.305, allocations: 4 kB / 1.24 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.992e-05/0.3051, allocations: 47.42 kB / 1.24 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of SimCode: time 1.643e-06/0.3051, allocations: 0 / 1.24 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.3271, allocations: 6.46 MB / 1.246 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/7.861, allocations: 6.984 kB / 1.246 GB, free: 3.246 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches