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: translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000782/0.0007819, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0008465/0.0008466, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001725/0.001725, allocations: 278.4 kB / 291.4 MB, free: 1.848 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9447/0.9447, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000442/0.0004421, allocations: 15.84 kB / 0.598 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1725, allocations: 88.54 MB / 0.6845 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.003341/0.1759, allocations: 2.647 MB / 0.6871 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1777, allocations: 1.227 MB / 0.6883 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1779, allocations: 7.938 kB / 0.6883 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1781, allocations: 43.7 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.1784, allocations: 109 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.1787, allocations: 101.7 kB / 0.6885 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.1791, allocations: 349.2 kB / 0.6888 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.1794, allocations: 211.6 kB / 0.689 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1795, allocations: 95.62 kB / 0.6891 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.1798, allocations: 132.6 kB / 0.6893 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.1799, allocations: 8 kB / 0.6893 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.1801, allocations: 95.25 kB / 0.6894 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.478e-05/0.1802, allocations: 59.86 kB / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.977e-05/0.1802, allocations: 69.52 kB / 0.6895 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.1806, allocations: 251.3 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1806, allocations: 0 / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1806, allocations: 0 / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1806, allocations: 0 / 0.6897 GB, free: 10.09 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.0007631/0.1814, allocations: 480.4 kB / 0.6902 GB, free: 9.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1814, allocations: 12.03 kB / 0.6902 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000561/0.182, allocations: 82.11 kB / 0.6903 GB, free: 9.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1823, allocations: 236.4 kB / 0.6905 GB, free: 9.211 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.1823, allocations: 20.36 kB / 0.6905 GB, free: 9.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.1824, allocations: 16 kB / 0.6905 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.1828, allocations: 291.2 kB / 0.6908 GB, free: 8.871 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.1828, allocations: 4 kB / 0.6908 GB, free: 8.867 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.1829, allocations: 8 kB / 0.6908 GB, free: 8.859 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/0.1829, allocations: 16.36 kB / 0.6908 GB, free: 8.844 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002962/0.1832, allocations: 196.9 kB / 0.691 GB, free: 8.652 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.1846, allocations: 1.483 MB / 0.6925 GB, free: 7.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.1849, allocations: 183.7 kB / 0.6927 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.041e-05/0.1849, allocations: 32.84 kB / 0.6927 GB, free: 6.762 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.1849, allocations: 0 / 0.6927 GB, free: 6.762 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.185, allocations: 30.56 kB / 0.6927 GB, free: 6.723 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.185, allocations: 0 / 0.6927 GB, free: 6.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004448/0.1854, allocations: 235.4 kB / 0.6929 GB, free: 6.465 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.1855, allocations: 51.41 kB / 0.693 GB, free: 6.402 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.1857, allocations: 199.9 kB / 0.6932 GB, free: 6.199 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1857, allocations: 33.7 kB / 0.6932 GB, free: 6.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/0.1858, allocations: 167.7 kB / 0.6934 GB, free: 5.992 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.1858, allocations: 23.66 kB / 0.6934 GB, free: 5.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-06/0.1858, allocations: 0 / 0.6934 GB, free: 5.969 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1859, allocations: 330.8 kB / 0.6937 GB, free: 5.637 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.377e-05/0.186, allocations: 35.98 kB / 0.6937 GB, free: 5.602 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.128e-05/0.1861, allocations: 92.56 kB / 0.6938 GB, free: 5.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/0.1862, allocations: 59.92 kB / 0.6939 GB, free: 5.422 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1862, allocations: 0 / 0.6939 GB, free: 5.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002869/0.1865, allocations: 194.2 kB / 0.6941 GB, free: 5.223 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1865, allocations: 7.953 kB / 0.6941 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1865, allocations: 4 kB / 0.6941 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001519/0.1867, allocations: 24.84 kB / 0.6941 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1868, allocations: 31.92 kB / 0.6941 GB, free: 5.152 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009636/0.1878, allocations: 1.312 MB / 0.6954 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.1879, allocations: 19.84 kB / 0.6954 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1879, allocations: 4 kB / 0.6954 GB, free: 3.684 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.1881, allocations: 158.6 kB / 0.6956 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.1881, allocations: 19.77 kB / 0.6956 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.038e-05/0.1882, allocations: 17.34 kB / 0.6956 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1882, allocations: 0 / 0.6956 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1882, allocations: 0 / 0.6956 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1882, allocations: 4 kB / 0.6956 GB, free: 3.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004861/0.1887, allocations: 439.3 kB / 0.6961 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1887, allocations: 0 / 0.6961 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.1888, allocations: 11.94 kB / 0.6961 GB, free: 2.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.147e-05/0.1888, allocations: 24.84 kB / 0.6961 GB, free: 2.953 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1889, allocations: 11.92 kB / 0.6961 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008644/0.1897, allocations: 1.312 MB / 0.6974 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1897, allocations: 0 / 0.6974 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.1899, allocations: 204.7 kB / 0.6976 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.19, allocations: 100.9 kB / 0.6977 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.1901, allocations: 0 / 0.6977 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1902, allocations: 12.09 kB / 0.6977 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.1902, allocations: 0 / 0.6977 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.1902, allocations: 4 kB / 0.6977 GB, free: 1.145 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.1903, allocations: 139.2 kB / 0.6978 GB, free: 1.008 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1903, allocations: 0 / 0.6978 GB, free: 1.008 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000322/0.1907, allocations: 55.78 kB / 0.6979 GB, free: 0.9531 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001028/0.1908, allocations: 103.2 kB / 0.698 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1911, allocations: 210.6 kB / 0.6982 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1911, allocations: 0 / 0.6982 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.1913, allocations: 150.6 kB / 0.6983 GB, free: 472 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.1916, allocations: 39.19 kB / 0.6984 GB, free: 436 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006226/0.1923, allocations: 431.4 kB / 0.6988 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.1926, allocations: 0.7516 MB / 0.6995 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.372e-05/0.1927, allocations: 25.52 kB / 0.6995 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.1927, allocations: 19.38 kB / 0.6995 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of SimCode: time 3.7e-07/0.1927, allocations: 4 kB / 0.6995 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of Templates: time 0.004381/0.1971, allocations: 1.627 MB / 0.7011 GB, free: 13.55 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)