Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_low,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="BuildingSystems_BuildingSystems_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.001056/0.001056, allocations: 108 kB / 15.61 MB, free: 152 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.00105/0.00105, allocations: 198.5 kB / 16.53 MB, free: 6.664 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.297/1.297, 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.002014/0.002014, allocations: 275 kB / 290.7 MB, free: 2.035 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9326/0.9326, allocations: 169.2 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00292/0.002921, allocations: 100.8 kB / 0.5953 GB, free: 27.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1592, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002603/0.1619, allocations: 1.389 MB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.1641, allocations: 1.929 MB / 0.6835 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.885e-05/0.1642, allocations: 3.938 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.1653, allocations: 385.9 kB / 0.6839 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.891e-05/0.1654, allocations: 23.91 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.65e-06/0.1654, allocations: 0 / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.1656, allocations: 127.1 kB / 0.684 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.366e-05/0.1656, allocations: 17.5 kB / 0.6841 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.577e-05/0.1657, allocations: 47.84 kB / 0.6841 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.1658, allocations: 63.7 kB / 0.6842 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.1659, allocations: 4 kB / 0.6842 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005046/0.1664, allocations: 175.9 kB / 0.6843 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.1664, allocations: 35.83 kB / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.1665, allocations: 63.62 kB / 0.6844 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.167, allocations: 291.1 kB / 0.6847 GB, free: 12.06 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.167, allocations: 0 / 0.6847 GB, free: 12.06 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.167, allocations: 3.984 kB / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.167, allocations: 4 kB / 0.6847 GB, free: 12.05 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.000716/0.1678, allocations: 494.5 kB / 0.6852 GB, free: 11.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1678, allocations: 8.031 kB / 0.6852 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.1679, allocations: 106 kB / 0.6853 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.168, allocations: 96.03 kB / 0.6854 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.1683, allocations: 291.3 kB / 0.6857 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.041e-05/0.1683, allocations: 158.9 kB / 0.6858 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.1684, allocations: 158.9 kB / 0.686 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.551e-05/0.1685, allocations: 104.9 kB / 0.6861 GB, free: 10.56 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.1685, allocations: 75.28 kB / 0.6861 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.289e-05/0.1686, allocations: 154.6 kB / 0.6863 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.942e-05/0.1686, allocations: 158.5 kB / 0.6864 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.733e-05/0.1687, allocations: 154.6 kB / 0.6866 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003939/0.1691, allocations: 0.5055 MB / 0.6871 GB, free: 9.473 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.68e-05/0.1692, allocations: 165.1 kB / 0.6872 GB, free: 9.301 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.646e-05/0.1692, allocations: 84.14 kB / 0.6873 GB, free: 9.215 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.1693, allocations: 83.22 kB / 0.6874 GB, free: 9.133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.1693, allocations: 109.8 kB / 0.6875 GB, free: 9.016 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1693, allocations: 0 / 0.6875 GB, free: 9.016 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001993/0.1695, allocations: 53.48 kB / 0.6876 GB, free: 8.957 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.1696, allocations: 126.7 kB / 0.6877 GB, free: 8.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.17, allocations: 322.3 kB / 0.688 GB, free: 8.496 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.17, allocations: 33.7 kB / 0.688 GB, free: 8.457 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.1701, allocations: 108.5 kB / 0.6881 GB, free: 8.348 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-06/0.1701, allocations: 0 / 0.6881 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.944e-05/0.1702, allocations: 57.69 kB / 0.6882 GB, free: 8.285 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1703, allocations: 334.8 kB / 0.6885 GB, free: 7.949 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.09e-05/0.1704, allocations: 71.83 kB / 0.6886 GB, free: 7.879 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1705, allocations: 121.9 kB / 0.6887 GB, free: 7.738 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.1708, allocations: 209.9 kB / 0.6889 GB, free: 7.512 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1708, allocations: 0 / 0.6889 GB, free: 7.512 MB / 494.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004378/0.1712, allocations: 237.1 kB / 0.6891 GB, free: 7.273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1713, allocations: 7.984 kB / 0.6891 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1713, allocations: 4 kB / 0.6891 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1713, allocations: 4.219 kB / 0.6891 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.98e-06/0.1713, allocations: 8 kB / 0.6891 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.1713, allocations: 0 / 0.6891 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.1714, allocations: 27.62 kB / 0.6892 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.1715, allocations: 4 kB / 0.6892 GB, free: 7.219 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.0002193/0.1717, allocations: 230.3 kB / 0.6894 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1718, allocations: 124.6 kB / 0.6895 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.884e-05/0.1719, allocations: 117.8 kB / 0.6896 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.297e-05/0.1719, allocations: 180.2 kB / 0.6898 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.84e-05/0.172, allocations: 180.2 kB / 0.69 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-05/0.1721, allocations: 184.2 kB / 0.6901 GB, free: 6.176 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003062/0.1724, allocations: 449.2 kB / 0.6906 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.756e-05/0.1725, allocations: 112.9 kB / 0.6907 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.972e-05/0.1725, allocations: 104.9 kB / 0.6908 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-05/0.1726, allocations: 180.3 kB / 0.6909 GB, free: 5.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.966e-05/0.1727, allocations: 184.2 kB / 0.6911 GB, free: 5.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-05/0.1727, allocations: 176.3 kB / 0.6913 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.695e-05/0.1728, allocations: 176.3 kB / 0.6914 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001506/0.173, allocations: 323.6 kB / 0.6918 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.1731, allocations: 201.8 kB / 0.6919 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.1732, allocations: 180.3 kB / 0.6921 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.1733, allocations: 105 kB / 0.6922 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/0.1734, allocations: 192.5 kB / 0.6924 GB, free: 3.672 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.1734, allocations: 101 kB / 0.6925 GB, free: 3.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.1736, allocations: 213.9 kB / 0.6927 GB, free: 3.359 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1736, allocations: 0 / 0.6927 GB, free: 3.359 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.174, allocations: 67.98 kB / 0.6928 GB, free: 3.293 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.0005869/0.1746, allocations: 0.9215 MB / 0.6937 GB, free: 2.344 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001764/0.1747, allocations: 108 kB / 0.6938 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1748, allocations: 0 / 0.6938 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.264e-06/0.1748, allocations: 0 / 0.6938 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.1751, allocations: 461 kB / 0.6942 GB, free: 1.781 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.1775, allocations: 2.431 MB / 0.6966 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.1779, allocations: 0.7353 MB / 0.6973 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.469e-05/0.1779, allocations: 0 / 0.6973 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.1779, allocations: 43.36 kB / 0.6973 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.1779, allocations: 0 / 0.6973 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.1993, allocations: 4.815 MB / 0.702 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.932/7.131, allocations: 11.56 kB / 0.7021 GB, free: 9.754 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1)