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.001061/0.001061, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001096/0.001096, allocations: 190.6 kB / 16.25 MB, free: 6.574 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.445/1.445, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002102/0.002102, allocations: 302.6 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.939/0.939, allocations: 169.2 MB / 0.4978 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 84.88 kB / 0.5947 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1663, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004717/0.1711, allocations: 3.104 MB / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.173, allocations: 1.323 MB / 0.684 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1731, allocations: 7.938 kB / 0.684 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009304/0.1741, allocations: 316.5 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.1744, allocations: 124.9 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.1747, allocations: 120.9 kB / 0.6845 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.175, allocations: 306.9 kB / 0.6848 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004278/0.1755, allocations: 268.2 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1756, allocations: 123.5 kB / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.1759, allocations: 143.5 kB / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.1759, allocations: 20 kB / 0.6853 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.1762, allocations: 171.6 kB / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.1763, allocations: 75.8 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1764, allocations: 115.5 kB / 0.6857 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.1768, allocations: 346.9 kB / 0.686 GB, free: 10.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1768, allocations: 7.984 kB / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1768, allocations: 0 / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1768, allocations: 0 / 0.686 GB, free: 10.52 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.0007484/0.1776, allocations: 0.5069 MB / 0.6865 GB, free: 9.961 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1776, allocations: 8.031 kB / 0.6865 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005481/0.1782, allocations: 80.58 kB / 0.6866 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.1785, allocations: 251.8 kB / 0.6868 GB, free: 9.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1785, allocations: 12.75 kB / 0.6868 GB, free: 9.578 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.1785, allocations: 16.38 kB / 0.6869 GB, free: 9.562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.179, allocations: 307.5 kB / 0.6871 GB, free: 9.242 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.179, allocations: 0 / 0.6871 GB, free: 9.242 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.179, allocations: 8 kB / 0.6872 GB, free: 9.234 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.179, allocations: 20.38 kB / 0.6872 GB, free: 9.215 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.1793, allocations: 196.9 kB / 0.6874 GB, free: 9.023 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1808, allocations: 1.46 MB / 0.6888 GB, free: 7.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.1811, allocations: 175.7 kB / 0.689 GB, free: 7.199 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.645e-05/0.1811, allocations: 32.84 kB / 0.689 GB, free: 7.164 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/0.1811, allocations: 4 kB / 0.689 GB, free: 7.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.1812, allocations: 34.56 kB / 0.689 GB, free: 7.117 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/0.1812, allocations: 4 kB / 0.689 GB, free: 7.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.000472/0.1817, allocations: 219.4 kB / 0.6892 GB, free: 6.871 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.1817, allocations: 59.34 kB / 0.6893 GB, free: 6.801 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.1819, allocations: 196.1 kB / 0.6895 GB, free: 6.602 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1819, allocations: 25.7 kB / 0.6895 GB, free: 6.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.182, allocations: 163.6 kB / 0.6897 GB, free: 6.406 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.1821, allocations: 35.69 kB / 0.6897 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.1821, allocations: 37.72 kB / 0.6897 GB, free: 6.328 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.1822, allocations: 326.8 kB / 0.69 GB, free: 6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.966e-05/0.1823, allocations: 39.97 kB / 0.6901 GB, free: 5.961 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.428e-05/0.1824, allocations: 92.58 kB / 0.6902 GB, free: 5.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.1825, allocations: 156.3 kB / 0.6903 GB, free: 5.656 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1826, allocations: 4 kB / 0.6903 GB, free: 5.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002787/0.1828, allocations: 190 kB / 0.6905 GB, free: 5.457 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1829, allocations: 4 kB / 0.6905 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1829, allocations: 4.281 kB / 0.6905 GB, free: 5.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001518/0.183, allocations: 28.84 kB / 0.6905 GB, free: 5.418 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1832, allocations: 27.98 kB / 0.6906 GB, free: 5.391 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000979/0.1841, allocations: 1.422 MB / 0.692 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1843, allocations: 11.84 kB / 0.692 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1843, allocations: 12 kB / 0.692 GB, free: 3.801 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.0001147/0.1844, allocations: 159 kB / 0.6921 GB, free: 3.637 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.1844, allocations: 15.81 kB / 0.6921 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.763e-05/0.1845, allocations: 17.41 kB / 0.6922 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1845, allocations: 0 / 0.6922 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.1845, allocations: 0 / 0.6922 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1845, allocations: 3.984 kB / 0.6922 GB, free: 3.602 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004571/0.185, allocations: 439.2 kB / 0.6926 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.185, allocations: 4 kB / 0.6926 GB, free: 3.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.958e-05/0.185, allocations: 11.98 kB / 0.6926 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-05/0.1851, allocations: 20.84 kB / 0.6926 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1851, allocations: 0 / 0.6926 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009092/0.186, allocations: 1.418 MB / 0.694 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.186, allocations: 0 / 0.694 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.1863, allocations: 220.2 kB / 0.6942 GB, free: 1.281 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.996e-05/0.1863, allocations: 92.92 kB / 0.6943 GB, free: 1.172 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.1864, allocations: 4 kB / 0.6943 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1865, allocations: 3.984 kB / 0.6943 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.1865, allocations: 4 kB / 0.6943 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1865, allocations: 12 kB / 0.6943 GB, free: 1.148 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001051/0.1866, allocations: 136.4 kB / 0.6945 GB, free: 1.016 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1866, allocations: 4 kB / 0.6945 GB, free: 1.012 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.1869, allocations: 51.84 kB / 0.6945 GB, free: 0.9609 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 9.609e-05/0.187, allocations: 100.4 kB / 0.6946 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000342/0.1874, allocations: 214.5 kB / 0.6948 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1874, allocations: 0.5625 kB / 0.6948 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.1876, allocations: 150.6 kB / 0.6949 GB, free: 480 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.1879, allocations: 46.91 kB / 0.695 GB, free: 436 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006146/0.1885, allocations: 434.6 kB / 0.6954 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1889, allocations: 0.7436 MB / 0.6961 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.148e-05/0.189, allocations: 29.52 kB / 0.6962 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.189, allocations: 11.44 kB / 0.6962 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of SimCode: time 2.11e-07/0.189, allocations: 3.938 kB / 0.6962 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of Templates: time 0.00431/0.1933, allocations: 1.76 MB / 0.6979 GB, free: 13.43 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)