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.001081/0.001081, 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.001185/0.001185, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002112, allocations: 294.6 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9298/0.9298, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 98.42 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1569, allocations: 86.99 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002862/0.1598, allocations: 1.396 MB / 0.6817 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003155/0.163, allocations: 2.678 MB / 0.6843 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.364e-05/0.1631, allocations: 0 / 0.6843 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.1649, allocations: 0.5792 MB / 0.6848 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.288e-05/0.165, allocations: 27.84 kB / 0.6849 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.972e-06/0.165, allocations: 0 / 0.6849 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000276/0.1653, allocations: 159 kB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.291e-05/0.1654, allocations: 40.34 kB / 0.6851 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.248e-05/0.1655, allocations: 55.73 kB / 0.6851 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1656, allocations: 79.58 kB / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.1656, allocations: 4 kB / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1667, allocations: 467.3 kB / 0.6856 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.504e-05/0.1668, allocations: 35.78 kB / 0.6857 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.672e-05/0.1669, allocations: 95.42 kB / 0.6858 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006366/0.1675, allocations: 430.3 kB / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1676, allocations: 3.938 kB / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1676, allocations: 0 / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1676, allocations: 0 / 0.6862 GB, free: 10.56 MB / 494.1 MB 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.0008451/0.1684, allocations: 0.5568 MB / 0.6867 GB, free: 9.949 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1685, allocations: 8.031 kB / 0.6867 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.1685, allocations: 106 kB / 0.6868 GB, free: 9.828 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.1687, allocations: 103.9 kB / 0.6869 GB, free: 9.727 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.169, allocations: 302.3 kB / 0.6872 GB, free: 9.395 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.109e-05/0.1691, allocations: 150.9 kB / 0.6874 GB, free: 9.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.087e-05/0.1691, allocations: 162.9 kB / 0.6875 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.653e-05/0.1692, allocations: 105.5 kB / 0.6876 GB, free: 8.977 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.1692, allocations: 79.22 kB / 0.6877 GB, free: 8.898 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/0.1693, allocations: 150.6 kB / 0.6878 GB, free: 8.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-05/0.1693, allocations: 154.5 kB / 0.688 GB, free: 8.598 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.235e-05/0.1694, allocations: 154.6 kB / 0.6881 GB, free: 8.445 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003453/0.1697, allocations: 0.5367 MB / 0.6887 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.45e-05/0.1698, allocations: 165.1 kB / 0.6888 GB, free: 7.688 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.257e-05/0.1699, allocations: 80.14 kB / 0.6889 GB, free: 7.605 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1699, allocations: 87.22 kB / 0.689 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.1699, allocations: 105.8 kB / 0.6891 GB, free: 7.406 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 1.133e-06/0.1699, allocations: 0 / 0.6891 GB, free: 7.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001699/0.1701, allocations: 61.34 kB / 0.6891 GB, free: 7.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.1702, allocations: 126.7 kB / 0.6892 GB, free: 7.203 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.1706, allocations: 433.2 kB / 0.6897 GB, free: 6.773 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.1706, allocations: 25.7 kB / 0.6897 GB, free: 6.742 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.961e-05/0.1707, allocations: 140.4 kB / 0.6898 GB, free: 6.602 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-06/0.1707, allocations: 0 / 0.6898 GB, free: 6.602 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.097e-05/0.1708, allocations: 89.67 kB / 0.6899 GB, free: 6.508 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1709, allocations: 346.7 kB / 0.6902 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.171, allocations: 96.52 kB / 0.6903 GB, free: 6.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1712, allocations: 161.3 kB / 0.6905 GB, free: 5.891 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.1715, allocations: 301.7 kB / 0.6908 GB, free: 5.574 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1715, allocations: 0 / 0.6908 GB, free: 5.574 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004749/0.1719, allocations: 336.8 kB / 0.6911 GB, free: 5.238 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.172, allocations: 7.938 kB / 0.6911 GB, free: 5.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.172, allocations: 4 kB / 0.6911 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.172, allocations: 0 / 0.6911 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.736e-06/0.172, allocations: 4 kB / 0.6911 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.172, allocations: 8.281 kB / 0.6911 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.1722, allocations: 47.28 kB / 0.6912 GB, free: 5.168 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.1722, allocations: 8 kB / 0.6912 GB, free: 5.16 MB / 494.1 MB 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.00021/0.1724, allocations: 244 kB / 0.6914 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/0.1725, allocations: 128.6 kB / 0.6915 GB, free: 4.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.507e-05/0.1725, allocations: 114.9 kB / 0.6916 GB, free: 4.66 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.157e-05/0.1726, allocations: 180.3 kB / 0.6918 GB, free: 4.477 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.26e-05/0.1726, allocations: 188.3 kB / 0.692 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.633e-05/0.1727, allocations: 184.1 kB / 0.6922 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.173, allocations: 477.2 kB / 0.6926 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-05/0.173, allocations: 104.9 kB / 0.6927 GB, free: 3.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.1731, allocations: 101 kB / 0.6928 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.756e-05/0.1731, allocations: 188.2 kB / 0.693 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.1732, allocations: 184.4 kB / 0.6932 GB, free: 2.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.749e-05/0.1733, allocations: 180.2 kB / 0.6933 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.923e-05/0.1733, allocations: 184.2 kB / 0.6935 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.1735, allocations: 327.5 kB / 0.6938 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.331e-05/0.1736, allocations: 201.7 kB / 0.694 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.381e-05/0.1737, allocations: 184.2 kB / 0.6942 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.1738, allocations: 104.9 kB / 0.6943 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.1738, allocations: 180.2 kB / 0.6945 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/0.1739, allocations: 109 kB / 0.6946 GB, free: 1.449 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.1742, allocations: 283 kB / 0.6948 GB, free: 1.172 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1742, allocations: 0 / 0.6948 GB, free: 1.172 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.1745, allocations: 80 kB / 0.6949 GB, free: 1.094 MB / 494.1 MB 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.0005839/0.1751, allocations: 0.9787 MB / 0.6959 GB, free: 92 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.1753, allocations: 159.9 kB / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1754, allocations: 0 / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.895e-06/0.1754, allocations: 7.875 kB / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.1757, allocations: 469.3 kB / 0.6965 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.1784, allocations: 2.894 MB / 0.6993 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.1787, allocations: 0.7743 MB / 0.7001 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.301e-05/0.1788, allocations: 4 kB / 0.7001 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.25e-05/0.1788, allocations: 51.41 kB / 0.7001 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1788, allocations: 4.188 kB / 0.7001 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.2026, allocations: 6.407 MB / 0.7064 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.969/7.172, allocations: 12.88 kB / 0.7064 GB, free: 5.324 MB / 0.4981 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)