Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.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_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low",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.007314/0.007314, allocations: 97.62 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.001695/0.001695, allocations: 195 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.612/2.612, allocations: 469.4 MB / 0.7422 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 71.83 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2793, allocations: 159.1 MB / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.00242/0.2818, allocations: 1.408 MB / 1.221 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002217/0.284, allocations: 1.927 MB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.519e-05/0.2841, allocations: 0 / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.2852, allocations: 392.4 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.964e-05/0.2853, allocations: 11.92 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 3.807e-06/0.2853, allocations: 0 / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.2855, allocations: 127.1 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.38e-05/0.2856, allocations: 25.48 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.538e-05/0.2856, allocations: 43.84 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.2857, allocations: 63.64 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.2858, allocations: 4 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000506/0.2863, allocations: 183.9 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.2863, allocations: 27.84 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.508e-05/0.2864, allocations: 75.61 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004608/0.2869, allocations: 286.7 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2869, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2869, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.2869, allocations: 3.938 kB / 1.224 GB, free: 10.13 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.000681/0.2876, allocations: 0.4944 MB / 1.225 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2877, allocations: 15.97 kB / 1.225 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.2877, allocations: 106 kB / 1.225 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.2879, allocations: 104.1 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.2881, allocations: 291.3 kB / 1.225 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.2881, allocations: 150.9 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.2882, allocations: 154.9 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.683e-05/0.2882, allocations: 112.9 kB / 1.226 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.2883, allocations: 75.28 kB / 1.226 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.2883, allocations: 150.6 kB / 1.226 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.263e-05/0.2884, allocations: 158.6 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.635e-05/0.2884, allocations: 150.6 kB / 1.226 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003098/0.2887, allocations: 0.5056 MB / 1.227 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.117e-05/0.2888, allocations: 169.1 kB / 1.227 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.768e-05/0.2888, allocations: 80.14 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.2889, allocations: 79.22 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.2889, allocations: 109.8 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 2.344e-06/0.2889, allocations: 3.984 kB / 1.227 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 0.0001733/0.2891, allocations: 53.55 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.2892, allocations: 130.6 kB / 1.227 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.2895, allocations: 322.4 kB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.2895, allocations: 29.7 kB / 1.227 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.2896, allocations: 116.5 kB / 1.228 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-06/0.2896, allocations: 0 / 1.228 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.481e-05/0.2896, allocations: 65.69 kB / 1.228 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2898, allocations: 338.9 kB / 1.228 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.547e-05/0.2899, allocations: 59.95 kB / 1.228 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.29, allocations: 121.9 kB / 1.228 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.2902, allocations: 213.8 kB / 1.228 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2902, allocations: 0 / 1.228 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004036/0.2906, allocations: 237.3 kB / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.2906, allocations: 5.562 kB / 1.229 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2907, allocations: 4 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2907, allocations: 3.984 kB / 1.229 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.906e-06/0.2907, allocations: 4 kB / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2907, allocations: 3.938 kB / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.2908, allocations: 31.67 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.2908, allocations: 12.16 kB / 1.229 GB, free: 5.262 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.0001936/0.291, allocations: 221.1 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.2911, allocations: 124.8 kB / 1.229 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.2912, allocations: 113.8 kB / 1.229 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.589e-05/0.2912, allocations: 188.2 kB / 1.229 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-05/0.2913, allocations: 184.2 kB / 1.229 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.524e-05/0.2913, allocations: 180.3 kB / 1.23 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002535/0.2916, allocations: 449.2 kB / 1.23 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.699e-05/0.2916, allocations: 108.9 kB / 1.23 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-05/0.2917, allocations: 101 kB / 1.23 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.869e-05/0.2917, allocations: 184.2 kB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/0.2918, allocations: 180.3 kB / 1.231 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.713e-05/0.2919, allocations: 184.2 kB / 1.231 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.143e-05/0.2919, allocations: 180.2 kB / 1.231 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.2921, allocations: 311.7 kB / 1.231 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/0.2922, allocations: 218.1 kB / 1.231 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.2923, allocations: 176.3 kB / 1.232 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.2924, allocations: 109 kB / 1.232 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.2925, allocations: 184.2 kB / 1.232 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.2925, allocations: 104.9 kB / 1.232 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001865/0.2927, allocations: 213.9 kB / 1.232 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2927, allocations: 4 kB / 1.232 GB, free: 1.398 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003532/0.2931, allocations: 63.92 kB / 1.232 GB, free: 1.336 MB / 0.9825 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.0007126/0.2938, allocations: 0.9178 MB / 1.233 GB, free: 400 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001637/0.294, allocations: 103.9 kB / 1.233 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.294, allocations: 0 / 1.233 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.296e-06/0.294, allocations: 3.938 kB / 1.233 GB, free: 292 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.2943, allocations: 460.7 kB / 1.234 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.2966, allocations: 2.437 MB / 1.236 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.2968, allocations: 0.7392 MB / 1.237 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.516e-05/0.2969, allocations: 3.984 kB / 1.237 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.282e-05/0.2969, allocations: 39.61 kB / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.2969, allocations: 3.938 kB / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.3167, allocations: 4.862 MB / 1.242 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/7.717, allocations: 9.828 kB / 1.242 GB, free: 7.738 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_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_low.fmu > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_low.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_low.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches