Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.001103/0.001103, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001158/0.001158, allocations: 190.5 kB / 16.25 MB, free: 6.145 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.319/1.319, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001999/0.001999, allocations: 278.9 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9304/0.9304, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 93.56 kB / 0.5948 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1602, allocations: 86.98 MB / 0.6797 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004563/0.1648, allocations: 3.107 MB / 0.6828 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1667, allocations: 1.319 MB / 0.6841 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.1669, allocations: 4 kB / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009474/0.1679, allocations: 317.6 kB / 0.6844 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.1682, allocations: 135.4 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.1686, allocations: 127.7 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.169, allocations: 303 kB / 0.6849 GB, free: 11.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.1694, allocations: 260.3 kB / 0.6851 GB, free: 11.42 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.1696, allocations: 123.6 kB / 0.6853 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.1699, allocations: 147.5 kB / 0.6854 GB, free: 11.15 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.1699, allocations: 16 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.1702, allocations: 167.6 kB / 0.6856 GB, free: 10.97 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.794e-05/0.1703, allocations: 79.8 kB / 0.6857 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.1704, allocations: 115.5 kB / 0.6858 GB, free: 10.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.1708, allocations: 338.9 kB / 0.6861 GB, free: 10.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1708, allocations: 0 / 0.6861 GB, free: 10.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1708, allocations: 3.938 kB / 0.6861 GB, free: 10.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1708, allocations: 0 / 0.6861 GB, free: 10.45 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007754/0.1716, allocations: 0.5225 MB / 0.6866 GB, free: 9.871 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1716, allocations: 8.031 kB / 0.6866 GB, free: 9.863 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/0.1717, allocations: 54.73 kB / 0.6867 GB, free: 9.801 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005334/0.1722, allocations: 80.58 kB / 0.6867 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.1725, allocations: 239.9 kB / 0.687 GB, free: 9.449 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1725, allocations: 12.75 kB / 0.687 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.034e-05/0.1726, allocations: 24.36 kB / 0.687 GB, free: 9.414 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004238/0.173, allocations: 295.3 kB / 0.6873 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.173, allocations: 4 kB / 0.6873 GB, free: 9.102 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.1731, allocations: 4 kB / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.1731, allocations: 16.36 kB / 0.6873 GB, free: 9.082 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.1734, allocations: 200.9 kB / 0.6875 GB, free: 8.887 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1747, allocations: 1.468 MB / 0.6889 GB, free: 7.254 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.175, allocations: 175.7 kB / 0.6891 GB, free: 7.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.691e-05/0.1751, allocations: 36.83 kB / 0.6891 GB, free: 7.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.1751, allocations: 0 / 0.6891 GB, free: 7.016 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.1751, allocations: 30.56 kB / 0.6892 GB, free: 6.977 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.1751, allocations: 0 / 0.6892 GB, free: 6.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004491/0.1756, allocations: 231.4 kB / 0.6894 GB, free: 6.723 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.1756, allocations: 55.39 kB / 0.6894 GB, free: 6.656 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.1758, allocations: 200.1 kB / 0.6896 GB, free: 6.453 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1758, allocations: 25.7 kB / 0.6897 GB, free: 6.422 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.374e-05/0.1759, allocations: 171.6 kB / 0.6898 GB, free: 6.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.1759, allocations: 23.66 kB / 0.6898 GB, free: 6.227 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.176, allocations: 37.7 kB / 0.6899 GB, free: 6.184 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.942e-05/0.1761, allocations: 330.7 kB / 0.6902 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.894e-05/0.1762, allocations: 35.98 kB / 0.6902 GB, free: 5.816 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.98e-05/0.1763, allocations: 108.4 kB / 0.6903 GB, free: 5.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1764, allocations: 144.5 kB / 0.6905 GB, free: 5.508 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1765, allocations: 4 kB / 0.6905 GB, free: 5.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002761/0.1767, allocations: 190.1 kB / 0.6907 GB, free: 5.309 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1768, allocations: 8 kB / 0.6907 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1768, allocations: 4 kB / 0.6907 GB, free: 5.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.1769, allocations: 25.12 kB / 0.6907 GB, free: 5.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.177, allocations: 31.92 kB / 0.6907 GB, free: 5.238 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009868/0.178, allocations: 1.418 MB / 0.6921 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1782, allocations: 19.81 kB / 0.6921 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.1782, allocations: 8 kB / 0.6921 GB, free: 3.648 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.1783, allocations: 146.4 kB / 0.6923 GB, free: 3.496 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.1783, allocations: 19.91 kB / 0.6923 GB, free: 3.477 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.913e-05/0.1784, allocations: 21.39 kB / 0.6923 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1784, allocations: 4 kB / 0.6923 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1784, allocations: 0 / 0.6923 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1784, allocations: 0 / 0.6923 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004519/0.1789, allocations: 443.2 kB / 0.6927 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1789, allocations: 0 / 0.6927 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.438e-05/0.1789, allocations: 8 kB / 0.6927 GB, free: 2.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.701e-05/0.179, allocations: 28.84 kB / 0.6928 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.179, allocations: 0 / 0.6928 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009004/0.1799, allocations: 1.414 MB / 0.6942 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1799, allocations: 3.984 kB / 0.6942 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.1801, allocations: 208.2 kB / 0.6944 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.1802, allocations: 104.9 kB / 0.6945 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.1802, allocations: 4.094 kB / 0.6945 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.1804, allocations: 7.938 kB / 0.6945 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.415e-05/0.1804, allocations: 11.92 kB / 0.6945 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.1804, allocations: 0 / 0.6945 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1805, allocations: 144.4 kB / 0.6946 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1805, allocations: 0 / 0.6946 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1808, allocations: 51.84 kB / 0.6947 GB, free: 0.8047 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004647/0.1813, allocations: 0.7503 MB / 0.6954 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.1817, allocations: 223 kB / 0.6956 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1817, allocations: 3.938 kB / 0.6956 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1818, allocations: 138.7 kB / 0.6957 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.1822, allocations: 35.8 kB / 0.6958 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.1842, allocations: 2.116 MB / 0.6978 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.1846, allocations: 0.7475 MB / 0.6986 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.641e-05/0.1847, allocations: 21.55 kB / 0.6986 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.1847, allocations: 59.34 kB / 0.6987 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1847, allocations: 0 / 0.6987 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01645/0.2012, allocations: 3.568 MB / 0.7021 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.2014, allocations: 241.6 kB / 0.7024 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/1.974, allocations: 4 kB / 0.7024 GB, free: 8.836 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)