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.001051/0.001051, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001608/0.001608, allocations: 192.2 kB / 16.13 MB, free: 6.672 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.346/1.346, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 282.7 kB / 290.2 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9269/0.9269, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 85.48 kB / 0.5945 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1453, allocations: 86.99 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004095/0.1494, allocations: 3.111 MB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1513, allocations: 1.335 MB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.1514, allocations: 7.938 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008659/0.1523, allocations: 311 kB / 0.6841 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.1526, allocations: 139.4 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.1528, allocations: 111.8 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.1532, allocations: 442.7 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002584/0.1535, allocations: 156.3 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1536, allocations: 107.6 kB / 0.685 GB, free: 11.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1539, allocations: 139.5 kB / 0.6851 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.1539, allocations: 19.94 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003086/0.1542, allocations: 207.6 kB / 0.6853 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.812e-05/0.1543, allocations: 75.8 kB / 0.6854 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1544, allocations: 111.5 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.1548, allocations: 338.9 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1548, allocations: 0 / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1548, allocations: 0 / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1548, allocations: 0 / 0.6858 GB, free: 10.61 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.0007398/0.1555, allocations: 0.5147 MB / 0.6863 GB, free: 10.05 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.1556, allocations: 12.03 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005756/0.1562, allocations: 76.56 kB / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.1564, allocations: 247.8 kB / 0.6867 GB, free: 9.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.1565, allocations: 12.75 kB / 0.6867 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.1565, allocations: 16.38 kB / 0.6867 GB, free: 9.652 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.1569, allocations: 311.5 kB / 0.687 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1569, allocations: 0 / 0.687 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.157, allocations: 8 kB / 0.687 GB, free: 9.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.222e-05/0.157, allocations: 20.36 kB / 0.687 GB, free: 9.301 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000293/0.1573, allocations: 193 kB / 0.6872 GB, free: 9.113 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.1586, allocations: 1.464 MB / 0.6886 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.1589, allocations: 175.7 kB / 0.6888 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.372e-05/0.1589, allocations: 32.8 kB / 0.6888 GB, free: 7.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.159, allocations: 8.031 kB / 0.6888 GB, free: 7.242 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.159, allocations: 38.55 kB / 0.6889 GB, free: 7.195 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.159, allocations: 0 / 0.6889 GB, free: 7.195 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004305/0.1594, allocations: 219.4 kB / 0.6891 GB, free: 6.953 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.1595, allocations: 55.34 kB / 0.6891 GB, free: 6.887 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.1597, allocations: 204.1 kB / 0.6893 GB, free: 6.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1597, allocations: 25.7 kB / 0.6894 GB, free: 6.648 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.1598, allocations: 159.6 kB / 0.6895 GB, free: 6.488 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.1598, allocations: 31.7 kB / 0.6895 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.1598, allocations: 33.72 kB / 0.6896 GB, free: 6.418 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.402e-05/0.1599, allocations: 330.8 kB / 0.6899 GB, free: 6.086 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.2e-05/0.16, allocations: 35.98 kB / 0.6899 GB, free: 6.051 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.1601, allocations: 103.2 kB / 0.69 GB, free: 5.922 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.1603, allocations: 148.4 kB / 0.6902 GB, free: 5.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1603, allocations: 11.88 kB / 0.6902 GB, free: 5.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002909/0.1606, allocations: 190.1 kB / 0.6904 GB, free: 5.539 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.1606, allocations: 4 kB / 0.6904 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1606, allocations: 7.984 kB / 0.6904 GB, free: 5.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001362/0.1608, allocations: 24.84 kB / 0.6904 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1609, allocations: 24 kB / 0.6904 GB, free: 5.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009091/0.1618, allocations: 1.315 MB / 0.6917 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1619, allocations: 19.84 kB / 0.6917 GB, free: 4.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.1619, allocations: 4 kB / 0.6917 GB, free: 4 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.1621, allocations: 155.2 kB / 0.6919 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.1621, allocations: 19.75 kB / 0.6919 GB, free: 3.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.1621, allocations: 17.39 kB / 0.6919 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.1622, allocations: 0 / 0.6919 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1622, allocations: 0 / 0.6919 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1622, allocations: 4 kB / 0.6919 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004688/0.1626, allocations: 443.2 kB / 0.6923 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1627, allocations: 0 / 0.6923 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.006e-05/0.1627, allocations: 8 kB / 0.6923 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.686e-05/0.1628, allocations: 20.84 kB / 0.6924 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1628, allocations: 8.062 kB / 0.6924 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008398/0.1637, allocations: 1.315 MB / 0.6936 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1637, allocations: 3.938 kB / 0.6937 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.1639, allocations: 212.5 kB / 0.6939 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.164, allocations: 97.14 kB / 0.6939 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.164, allocations: 3.938 kB / 0.694 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1641, allocations: 7.984 kB / 0.694 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-05/0.1641, allocations: 8 kB / 0.694 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.1641, allocations: 0 / 0.694 GB, free: 1.457 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000115/0.1643, allocations: 143.2 kB / 0.6941 GB, free: 1.316 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1643, allocations: 0 / 0.6941 GB, free: 1.316 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1646, allocations: 51.84 kB / 0.6942 GB, free: 1.266 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.385e-05/0.1647, allocations: 100.1 kB / 0.6942 GB, free: 1.156 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003383/0.165, allocations: 218.4 kB / 0.6945 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1651, allocations: 0 / 0.6945 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.1652, allocations: 151.1 kB / 0.6946 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1656, allocations: 38.08 kB / 0.6946 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005761/0.1662, allocations: 429.5 kB / 0.695 GB, free: 296 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.1665, allocations: 0.7517 MB / 0.6958 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.251e-05/0.1666, allocations: 25.53 kB / 0.6958 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.1666, allocations: 15.44 kB / 0.6958 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1666, allocations: 0 / 0.6958 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of Templates: time 0.004176/0.1708, allocations: 1.692 MB / 0.6975 GB, free: 13.8 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)