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.0009485/0.0009484, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005744/0.005744, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001697/0.001697, allocations: 270.6 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9374/0.9374, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 17.16 kB / 0.5986 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1556, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.003421/0.1591, allocations: 2.738 MB / 0.6878 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.161, allocations: 1.31 MB / 0.6891 GB, free: 11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.1611, allocations: 7.938 kB / 0.6891 GB, free: 10.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.1612, allocations: 35.7 kB / 0.6891 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.1616, allocations: 132.8 kB / 0.6892 GB, free: 10.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.1619, allocations: 132.4 kB / 0.6894 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.1623, allocations: 436.3 kB / 0.6898 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.1626, allocations: 236.7 kB / 0.69 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1627, allocations: 97.62 kB / 0.6901 GB, free: 9.941 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.1629, allocations: 135.5 kB / 0.6902 GB, free: 9.809 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.163, allocations: 12 kB / 0.6902 GB, free: 9.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002753/0.1632, allocations: 199.6 kB / 0.6904 GB, free: 9.602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.382e-05/0.1633, allocations: 67.8 kB / 0.6905 GB, free: 9.535 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1634, allocations: 133.2 kB / 0.6906 GB, free: 9.398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.1638, allocations: 342.8 kB / 0.691 GB, free: 9.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1638, allocations: 0 / 0.691 GB, free: 9.062 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1638, allocations: 0 / 0.691 GB, free: 9.062 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1638, allocations: 0 / 0.691 GB, free: 9.062 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.0006145/0.1644, allocations: 479.2 kB / 0.6914 GB, free: 8.543 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1645, allocations: 8.031 kB / 0.6914 GB, free: 8.535 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.165, allocations: 88.52 kB / 0.6915 GB, free: 8.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.1653, allocations: 239.9 kB / 0.6917 GB, free: 8.176 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1653, allocations: 16.73 kB / 0.6918 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.946e-05/0.1653, allocations: 16.38 kB / 0.6918 GB, free: 8.145 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.1657, allocations: 303.5 kB / 0.6921 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1658, allocations: 0 / 0.6921 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.1658, allocations: 8 kB / 0.6921 GB, free: 7.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.1658, allocations: 20.36 kB / 0.6921 GB, free: 7.801 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.1661, allocations: 196.9 kB / 0.6923 GB, free: 7.609 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.1674, allocations: 1.468 MB / 0.6937 GB, free: 5.977 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.1677, allocations: 171.7 kB / 0.6939 GB, free: 5.781 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.826e-05/0.1677, allocations: 36.84 kB / 0.6939 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.1677, allocations: 0 / 0.6939 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1678, allocations: 38.56 kB / 0.6939 GB, free: 5.695 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.71e-07/0.1678, allocations: 0 / 0.6939 GB, free: 5.695 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004291/0.1682, allocations: 227.7 kB / 0.6942 GB, free: 5.445 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.1682, allocations: 55.41 kB / 0.6942 GB, free: 5.379 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.1684, allocations: 208 kB / 0.6944 GB, free: 5.168 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.1685, allocations: 25.7 kB / 0.6944 GB, free: 5.137 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.1685, allocations: 167.5 kB / 0.6946 GB, free: 4.969 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1686, allocations: 23.66 kB / 0.6946 GB, free: 4.945 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.1686, allocations: 21.7 kB / 0.6946 GB, free: 4.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.1687, allocations: 330.8 kB / 0.695 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-05/0.1688, allocations: 35.98 kB / 0.695 GB, free: 4.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.978e-05/0.1689, allocations: 102.8 kB / 0.6951 GB, free: 4.422 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.169, allocations: 148.4 kB / 0.6952 GB, free: 4.246 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.169, allocations: 4 kB / 0.6952 GB, free: 4.242 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002879/0.1693, allocations: 190.1 kB / 0.6954 GB, free: 4.047 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.1694, allocations: 4 kB / 0.6954 GB, free: 4.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1694, allocations: 4 kB / 0.6954 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.1695, allocations: 24.84 kB / 0.6954 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.1696, allocations: 31.92 kB / 0.6955 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008826/0.1705, allocations: 1.316 MB / 0.6968 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.1706, allocations: 23.69 kB / 0.6968 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1707, allocations: 4 kB / 0.6968 GB, free: 2.5 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.0001182/0.1708, allocations: 159.2 kB / 0.6969 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.1708, allocations: 15.84 kB / 0.697 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.1709, allocations: 17.41 kB / 0.697 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1709, allocations: 0 / 0.697 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1709, allocations: 4 kB / 0.697 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1709, allocations: 0 / 0.697 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004625/0.1713, allocations: 447.2 kB / 0.6974 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1714, allocations: 0 / 0.6974 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.1714, allocations: 11.94 kB / 0.6974 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.962e-05/0.1715, allocations: 20.98 kB / 0.6974 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.1715, allocations: 15.91 kB / 0.6974 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008261/0.1723, allocations: 1.304 MB / 0.6987 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1723, allocations: 3.938 kB / 0.6987 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000197/0.1725, allocations: 208.3 kB / 0.6989 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.221e-05/0.1726, allocations: 97.03 kB / 0.699 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.1727, allocations: 7.938 kB / 0.699 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.1728, allocations: 8 kB / 0.699 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.98e-05/0.1728, allocations: 4 kB / 0.699 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.1728, allocations: 0 / 0.699 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001158/0.1729, allocations: 147.2 kB / 0.6992 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1729, allocations: 0 / 0.6992 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003072/0.1732, allocations: 51.84 kB / 0.6992 GB, free: 15.76 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 (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.209e-05/0.1733, allocations: 104 kB / 0.6993 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003249/0.1737, allocations: 210.5 kB / 0.6995 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1737, allocations: 0 / 0.6995 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.1739, allocations: 147.2 kB / 0.6997 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.1742, allocations: 38.08 kB / 0.6997 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006115/0.1748, allocations: 447.2 kB / 0.7001 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.1752, allocations: 0.7517 MB / 0.7009 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.937e-05/0.1753, allocations: 25.53 kB / 0.7009 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.1753, allocations: 15.44 kB / 0.7009 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1753, allocations: 0 / 0.7009 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of Templates: time 0.004239/0.1796, allocations: 1.671 MB / 0.7025 GB, free: 12.31 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)