Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_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.005694/0.005694, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001663/0.001663, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002535/0.002535, allocations: 282.3 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.045/1.045, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 92.05 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1762, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002691/0.1789, allocations: 1.414 MB / 0.7673 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003545/0.1825, allocations: 2.671 MB / 0.7699 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.82e-05/0.1826, allocations: 4 kB / 0.7699 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.1844, allocations: 0.5904 MB / 0.7705 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.378e-05/0.1845, allocations: 27.84 kB / 0.7705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 4.439e-06/0.1845, allocations: 0 / 0.7705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.1847, allocations: 155 kB / 0.7706 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.429e-05/0.1848, allocations: 32.41 kB / 0.7707 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.913e-05/0.1849, allocations: 63.66 kB / 0.7707 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1851, allocations: 75.58 kB / 0.7708 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.1851, allocations: 4 kB / 0.7708 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.1863, allocations: 467.3 kB / 0.7712 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.146e-05/0.1864, allocations: 43.75 kB / 0.7713 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1865, allocations: 91.44 kB / 0.7714 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008017/0.1874, allocations: 438 kB / 0.7718 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1874, allocations: 0 / 0.7718 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.383e-06/0.1874, allocations: 0 / 0.7718 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.1874, allocations: 0 / 0.7718 GB, free: 2.883 MB / 0.5606 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.0008889/0.1883, allocations: 0.5642 MB / 0.7723 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.1883, allocations: 8.031 kB / 0.7723 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.1884, allocations: 106 kB / 0.7724 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.1886, allocations: 108 kB / 0.7726 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1889, allocations: 306.4 kB / 0.7728 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-05/0.189, allocations: 154.9 kB / 0.773 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.1891, allocations: 158.9 kB / 0.7731 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.255e-05/0.1892, allocations: 105.5 kB / 0.7732 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.1892, allocations: 79.22 kB / 0.7733 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/0.1893, allocations: 154.5 kB / 0.7735 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.62e-05/0.1894, allocations: 154.6 kB / 0.7736 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.571e-05/0.1894, allocations: 154.6 kB / 0.7738 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.1899, allocations: 0.5328 MB / 0.7743 GB, free: 172 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3226/0.5125, allocations: 173.1 kB / 0.7744 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.5126, allocations: 80.73 kB / 0.7745 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.5126, allocations: 75.28 kB / 0.7746 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.5126, allocations: 107.7 kB / 0.7747 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 2.104e-06/0.5126, allocations: 2.531 kB / 0.7747 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 0.0002321/0.5129, allocations: 56.77 kB / 0.7748 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.5129, allocations: 131.7 kB / 0.7749 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000538/0.5134, allocations: 431.3 kB / 0.7753 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.948e-06/0.5135, allocations: 28.95 kB / 0.7753 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.5135, allocations: 131.3 kB / 0.7754 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.476e-06/0.5135, allocations: 0 / 0.7754 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.5137, allocations: 92.16 kB / 0.7755 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.505e-05/0.5137, allocations: 341.2 kB / 0.7759 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.5139, allocations: 98.05 kB / 0.776 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.514, allocations: 167.2 kB / 0.7761 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.5144, allocations: 304.3 kB / 0.7764 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5144, allocations: 0.8438 kB / 0.7764 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005337/0.5149, allocations: 330.8 kB / 0.7767 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.515, allocations: 10.73 kB / 0.7767 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.515, allocations: 2.25 kB / 0.7767 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.515, allocations: 2.969 kB / 0.7767 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.296e-06/0.515, allocations: 5.641 kB / 0.7767 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.515, allocations: 6.484 kB / 0.7767 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.5152, allocations: 44.08 kB / 0.7768 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.5152, allocations: 4.062 kB / 0.7768 GB, free: 14.27 MB / 0.5606 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.0002286/0.5154, allocations: 251.6 kB / 0.777 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.792e-05/0.5155, allocations: 125.5 kB / 0.7771 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.5155, allocations: 120.4 kB / 0.7773 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.41e-05/0.5156, allocations: 178.8 kB / 0.7774 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.671e-05/0.5156, allocations: 184.2 kB / 0.7776 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.5156, allocations: 183.3 kB / 0.7778 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.5159, allocations: 477 kB / 0.7782 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.5159, allocations: 107.3 kB / 0.7783 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.671e-05/0.5159, allocations: 106.2 kB / 0.7784 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.331e-05/0.5159, allocations: 182.7 kB / 0.7786 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.516, allocations: 180 kB / 0.7788 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.1e-05/0.516, allocations: 178 kB / 0.779 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-05/0.516, allocations: 183 kB / 0.7791 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.528e-05/0.5161, allocations: 331.9 kB / 0.7795 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.5162, allocations: 204.5 kB / 0.7796 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.5162, allocations: 181.4 kB / 0.7798 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.5163, allocations: 111.6 kB / 0.7799 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.5164, allocations: 180.1 kB / 0.7801 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.5164, allocations: 110.2 kB / 0.7802 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002936/0.5167, allocations: 276.8 kB / 0.7805 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5167, allocations: 0 / 0.7805 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004428/0.5172, allocations: 87.23 kB / 0.7805 GB, free: 10.71 MB / 0.5606 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.000532/0.5177, allocations: 0.9585 MB / 0.7815 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002666/0.518, allocations: 164.9 kB / 0.7816 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.518, allocations: 0 / 0.7816 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.486e-06/0.518, allocations: 1.641 kB / 0.7816 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.5183, allocations: 467.7 kB / 0.7821 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.5212, allocations: 2.947 MB / 0.785 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.5214, allocations: 0.7764 MB / 0.7857 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.875e-05/0.5214, allocations: 4.188 kB / 0.7857 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.5215, allocations: 54.97 kB / 0.7858 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.5215, allocations: 3.938 kB / 0.7858 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.5511, allocations: 6.466 MB / 0.7921 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.189/8.74, allocations: 13.12 kB / 0.7921 GB, free: 5.973 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)