Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_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.008038/0.008038, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001977/0.001978, allocations: 199.3 kB / 16.67 MB, free: 5.969 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.308/2.308, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 62.66 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2655, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002522/0.2681, allocations: 1.403 MB / 1.089 GB, free: 0.5898 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003109/0.2712, allocations: 2.674 MB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.185e-05/0.2712, allocations: 4 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.2729, allocations: 0.5784 MB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.984e-05/0.273, allocations: 27.84 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.32e-06/0.273, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.2733, allocations: 154.9 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.376e-05/0.2734, allocations: 36.69 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.986e-05/0.2735, allocations: 59.66 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2736, allocations: 79.53 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.2736, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.2747, allocations: 475.3 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.597e-05/0.2748, allocations: 35.78 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.2749, allocations: 95.42 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006877/0.2756, allocations: 438.2 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2756, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.545e-06/0.2756, allocations: 7.984 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.2756, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 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.0007776/0.2764, allocations: 0.549 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.2765, allocations: 12.03 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.411e-05/0.2765, allocations: 106 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.2767, allocations: 99.94 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.2769, allocations: 310.2 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.277, allocations: 158.9 kB / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.277, allocations: 154.9 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.804e-05/0.2771, allocations: 105.5 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.2771, allocations: 79.22 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.676e-05/0.2772, allocations: 150.6 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.545e-05/0.2772, allocations: 158.6 kB / 1.095 GB, free: 9.973 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.961e-05/0.2773, allocations: 150.6 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003513/0.2776, allocations: 0.5289 MB / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.245e-05/0.2777, allocations: 173.1 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.512e-05/0.2778, allocations: 84.14 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2778, allocations: 75.28 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.2778, allocations: 109.8 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.2778, allocations: 0 / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 0.0001823/0.278, allocations: 61.34 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.2781, allocations: 126.7 kB / 1.096 GB, free: 8.586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.2785, allocations: 437.1 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.2785, allocations: 25.7 kB / 1.097 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.766e-05/0.2786, allocations: 140.5 kB / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.966e-06/0.2786, allocations: 3.938 kB / 1.097 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.2787, allocations: 89.66 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.2789, allocations: 342.8 kB / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.279, allocations: 96.5 kB / 1.098 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.2791, allocations: 165.3 kB / 1.098 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.2795, allocations: 309.6 kB / 1.098 GB, free: 6.938 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2795, allocations: 0 / 1.098 GB, free: 6.938 MB / 0.8575 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004973/0.28, allocations: 329 kB / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.28, allocations: 7.938 kB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.28, allocations: 4.219 kB / 1.098 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.28, allocations: 4 kB / 1.098 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.065e-06/0.28, allocations: 4 kB / 1.098 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.28, allocations: 3.938 kB / 1.098 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.2802, allocations: 47.27 kB / 1.098 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.659e-06/0.2802, allocations: 4 kB / 1.098 GB, free: 6.535 MB / 0.8575 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.0002066/0.2804, allocations: 242.4 kB / 1.099 GB, free: 6.289 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.2805, allocations: 124.6 kB / 1.099 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.2805, allocations: 118.9 kB / 1.099 GB, free: 6.035 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.329e-05/0.2806, allocations: 184.2 kB / 1.099 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.522e-05/0.2807, allocations: 180.2 kB / 1.099 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-05/0.2807, allocations: 180.3 kB / 1.099 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002699/0.281, allocations: 473.2 kB / 1.1 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/0.281, allocations: 112.9 kB / 1.1 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.292e-05/0.2811, allocations: 101 kB / 1.1 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.167e-05/0.2811, allocations: 192.2 kB / 1.1 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.428e-05/0.2812, allocations: 176.3 kB / 1.1 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.085e-05/0.2813, allocations: 180.5 kB / 1.101 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.543e-05/0.2813, allocations: 184.2 kB / 1.101 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.2815, allocations: 331.4 kB / 1.101 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.23e-05/0.2816, allocations: 201.8 kB / 1.101 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.428e-05/0.2816, allocations: 188.2 kB / 1.101 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.2818, allocations: 108.9 kB / 1.101 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.2818, allocations: 180.3 kB / 1.102 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.2819, allocations: 104.9 kB / 1.102 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002532/0.2821, allocations: 283.1 kB / 1.102 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.413e-06/0.2821, allocations: 0 / 1.102 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003712/0.2825, allocations: 83.94 kB / 1.102 GB, free: 2.465 MB / 0.8575 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.0005966/0.2831, allocations: 0.9566 MB / 1.103 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002158/0.2834, allocations: 167.8 kB / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2834, allocations: 0 / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.144e-06/0.2834, allocations: 0 / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.2838, allocations: 461.6 kB / 1.104 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.2865, allocations: 2.939 MB / 1.107 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.2868, allocations: 0.7743 MB / 1.107 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.499e-05/0.2868, allocations: 3.984 kB / 1.107 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.2869, allocations: 51.42 kB / 1.107 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of SimCode: time 1.623e-06/0.2869, allocations: 0 / 1.107 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.3093, allocations: 6.447 MB / 1.114 GB, free: 6.648 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.61/7.92, allocations: 14.23 kB / 1.114 GB, free: 6.641 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches