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.001261/0.001261, 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.001291/0.001291, allocations: 192.4 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.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002531/0.002531, allocations: 275 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002669/0.002669, allocations: 96.69 kB / 0.6065 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1612, allocations: 89.14 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002619/0.1639, allocations: 1.422 MB / 0.695 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003457/0.1673, allocations: 2.665 MB / 0.6976 GB, free: 132 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.16e-05/0.1674, allocations: 4.656 kB / 0.6976 GB, free: 128 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.1689, allocations: 0.5793 MB / 0.6982 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.106e-05/0.1689, allocations: 23.91 kB / 0.6982 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 4.178e-06/0.1689, allocations: 0 / 0.6982 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.1692, allocations: 158.8 kB / 0.6983 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.46e-05/0.1693, allocations: 36.41 kB / 0.6984 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.726e-05/0.1694, allocations: 67.72 kB / 0.6984 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.1695, allocations: 71.59 kB / 0.6985 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.1695, allocations: 4 kB / 0.6985 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.1706, allocations: 467.3 kB / 0.6989 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.488e-05/0.1707, allocations: 35.78 kB / 0.699 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1708, allocations: 99.41 kB / 0.6991 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006539/0.1714, allocations: 426.2 kB / 0.6995 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1714, allocations: 4 kB / 0.6995 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1715, allocations: 3.938 kB / 0.6995 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.1715, allocations: 4 kB / 0.6995 GB, free: 14.17 MB / 0.4981 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.0008369/0.1723, allocations: 0.549 MB / 0.7 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1724, allocations: 8.031 kB / 0.7 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.015e-05/0.1724, allocations: 106 kB / 0.7001 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.1726, allocations: 107.8 kB / 0.7002 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.1729, allocations: 310.2 kB / 0.7005 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.487e-05/0.1729, allocations: 150.9 kB / 0.7007 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.001e-05/0.173, allocations: 158.9 kB / 0.7008 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.96e-05/0.1731, allocations: 105.5 kB / 0.7009 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.1731, allocations: 79.22 kB / 0.701 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.452e-05/0.1732, allocations: 154.6 kB / 0.7012 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.892e-05/0.1733, allocations: 150.6 kB / 0.7013 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.727e-05/0.1734, allocations: 158.5 kB / 0.7015 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004236/0.1738, allocations: 0.5289 MB / 0.702 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.57e-05/0.1739, allocations: 165.1 kB / 0.7021 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.178e-05/0.1739, allocations: 88.14 kB / 0.7022 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.174, allocations: 75.28 kB / 0.7023 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.174, allocations: 105.8 kB / 0.7024 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.174, allocations: 0 / 0.7024 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of matching and sorting (n=0): time 0.0001871/0.1742, allocations: 65.19 kB / 0.7024 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.1743, allocations: 126.7 kB / 0.7026 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.1748, allocations: 437.3 kB / 0.703 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.1748, allocations: 29.7 kB / 0.703 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.1749, allocations: 128.5 kB / 0.7031 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.535e-06/0.1749, allocations: 0 / 0.7031 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.383e-05/0.175, allocations: 89.67 kB / 0.7032 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1752, allocations: 342.8 kB / 0.7035 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1753, allocations: 100.5 kB / 0.7036 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.1755, allocations: 165.2 kB / 0.7038 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.1758, allocations: 305.6 kB / 0.7041 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1758, allocations: 0 / 0.7041 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005205/0.1764, allocations: 336.8 kB / 0.7044 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1764, allocations: 12.16 kB / 0.7044 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1764, allocations: 4 kB / 0.7044 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1764, allocations: 4 kB / 0.7044 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.1764, allocations: 0 / 0.7044 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.1764, allocations: 4 kB / 0.7044 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.1766, allocations: 39.38 kB / 0.7045 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.1766, allocations: 4 kB / 0.7045 GB, free: 8.781 MB / 0.4981 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.0002533/0.1769, allocations: 245 kB / 0.7047 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.177, allocations: 132.5 kB / 0.7048 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.177, allocations: 115 kB / 0.7049 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.843e-05/0.1771, allocations: 180.2 kB / 0.7051 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.843e-05/0.1772, allocations: 192.3 kB / 0.7053 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-05/0.1773, allocations: 176.3 kB / 0.7055 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.1777, allocations: 481.1 kB / 0.7059 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/0.1777, allocations: 101 kB / 0.706 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.765e-05/0.1778, allocations: 104.9 kB / 0.7061 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.86e-05/0.1778, allocations: 184.2 kB / 0.7063 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.283e-05/0.1779, allocations: 180.4 kB / 0.7065 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.523e-05/0.178, allocations: 184.2 kB / 0.7066 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.398e-05/0.1781, allocations: 184.3 kB / 0.7068 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.1783, allocations: 323.5 kB / 0.7071 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.1784, allocations: 209.7 kB / 0.7073 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.1786, allocations: 180.2 kB / 0.7075 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.1787, allocations: 101 kB / 0.7076 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.51e-05/0.1788, allocations: 192.2 kB / 0.7078 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.1789, allocations: 101 kB / 0.7079 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002898/0.1792, allocations: 279.1 kB / 0.7081 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1792, allocations: 0 / 0.7081 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003819/0.1795, allocations: 84 kB / 0.7082 GB, free: 4.715 MB / 0.4981 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.0007402/0.1803, allocations: 0.9726 MB / 0.7092 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002438/0.1805, allocations: 163.8 kB / 0.7093 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1806, allocations: 0 / 0.7093 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.352e-06/0.1806, allocations: 0 / 0.7093 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.181, allocations: 471.8 kB / 0.7098 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.1841, allocations: 2.905 MB / 0.7126 GB, free: 72 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.1846, allocations: 0.7782 MB / 0.7134 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.547e-05/0.1846, allocations: 4 kB / 0.7134 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.822e-05/0.1847, allocations: 55.41 kB / 0.7134 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of SimCode: time 5.11e-07/0.1847, allocations: 0 / 0.7134 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2127, allocations: 6.406 MB / 0.7197 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.702/7.914, allocations: 11.06 kB / 0.7197 GB, free: 8.938 MB / 0.5137 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)