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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001648/0.001648, allocations: 108 kB / 15.6 MB, free: 132 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.0019/0.0019, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.639/2.639, allocations: 469.4 MB / 0.742 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002256/0.002256, allocations: 63.16 kB / 0.9083 GB, free: 34.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2694, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002542/0.272, allocations: 1.416 MB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003253/0.2753, allocations: 2.673 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.182e-05/0.2754, allocations: 0 / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.2773, allocations: 0.5866 MB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-05/0.2774, allocations: 15.86 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.269e-06/0.2774, allocations: 0 / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.2777, allocations: 155 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.742e-05/0.2778, allocations: 40.39 kB / 1.068 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.365e-05/0.2778, allocations: 55.73 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.278, allocations: 79.52 kB / 1.069 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.278, allocations: 4 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.2791, allocations: 467.3 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.541e-05/0.2792, allocations: 35.78 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.994e-05/0.2793, allocations: 99.41 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007098/0.28, allocations: 434.2 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.28, allocations: 4 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.28, allocations: 0 / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.28, allocations: 0 / 1.07 GB, free: 8.449 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0008217/0.2809, allocations: 0.5529 MB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2809, allocations: 12.02 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.966e-05/0.281, allocations: 110 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.2812, allocations: 99.94 kB / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.2814, allocations: 302.2 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.654e-05/0.2814, allocations: 162.9 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.2815, allocations: 150.9 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.968e-05/0.2816, allocations: 109.5 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.2816, allocations: 79.22 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.2817, allocations: 154.6 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.163e-05/0.2817, allocations: 150.6 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.17e-05/0.2818, allocations: 158.6 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003604/0.2821, allocations: 0.5327 MB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.928e-05/0.2822, allocations: 173.1 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.802e-05/0.2822, allocations: 84.14 kB / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.2823, allocations: 83.22 kB / 1.072 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/0.2823, allocations: 105.8 kB / 1.072 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.2823, allocations: 0 / 1.072 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.000181/0.2825, allocations: 57.34 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.2826, allocations: 126.7 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004311/0.283, allocations: 437.1 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.283, allocations: 25.7 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/0.2831, allocations: 140.5 kB / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.745e-06/0.2831, allocations: 3.938 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.364e-05/0.2832, allocations: 89.66 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.2833, allocations: 338.8 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.2835, allocations: 96.5 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.2836, allocations: 165.3 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.2839, allocations: 301.6 kB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2839, allocations: 7.938 kB / 1.074 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004906/0.2844, allocations: 321 kB / 1.074 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2845, allocations: 13.97 kB / 1.074 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2845, allocations: 0 / 1.074 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2845, allocations: 4.219 kB / 1.074 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.2845, allocations: 4 kB / 1.074 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2845, allocations: 7.938 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.2847, allocations: 47.22 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.2847, allocations: 7.984 kB / 1.075 GB, free: 3.039 MB / 0.8262 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.0002008/0.2849, allocations: 241.6 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.285, allocations: 124.6 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.285, allocations: 114.9 kB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.785e-05/0.2851, allocations: 184.2 kB / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.043e-05/0.2851, allocations: 184.2 kB / 1.075 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.742e-05/0.2852, allocations: 176.3 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.2855, allocations: 473.2 kB / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/0.2855, allocations: 108.9 kB / 1.076 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.605e-05/0.2856, allocations: 109 kB / 1.076 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-05/0.2856, allocations: 184.1 kB / 1.076 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.748e-05/0.2857, allocations: 180.2 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-05/0.2858, allocations: 176.5 kB / 1.077 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.725e-05/0.2858, allocations: 184.2 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.286, allocations: 335.4 kB / 1.077 GB, free: 156 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.2861, allocations: 197.8 kB / 1.077 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.324e-05/0.2862, allocations: 184.1 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.2863, allocations: 105 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/0.2864, allocations: 184.3 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.2864, allocations: 112.9 kB / 1.078 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002545/0.2867, allocations: 275.1 kB / 1.078 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.353e-06/0.2867, allocations: 0 / 1.078 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003902/0.2871, allocations: 87.94 kB / 1.078 GB, free: 14.98 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: 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.0005889/0.2877, allocations: 0.9566 MB / 1.079 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002131/0.2879, allocations: 171.8 kB / 1.079 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2879, allocations: 3.938 kB / 1.079 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.855e-06/0.2879, allocations: 4 kB / 1.079 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.2883, allocations: 457.1 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002709/0.291, allocations: 2.914 MB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.2913, allocations: 0.7704 MB / 1.083 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.346e-05/0.2914, allocations: 7.984 kB / 1.083 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.394e-05/0.2914, allocations: 55.42 kB / 1.084 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.2914, allocations: 4 kB / 1.084 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.3151, allocations: 6.389 MB / 1.09 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.738, allocations: 3.938 kB / 1.09 GB, free: 3.215 MB / 0.8419 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