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.005182/0.005182, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.001085/0.001085, allocations: 191.3 kB / 16.67 MB, free: 5.973 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002133/0.002134, allocations: 282.5 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9361/0.9361, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 95.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1553, allocations: 86.98 MB / 0.7664 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.003986/0.1594, allocations: 3.066 MB / 0.7694 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1611, allocations: 1.336 MB / 0.7707 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.867e-05/0.1612, allocations: 4 kB / 0.7707 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008938/0.1621, allocations: 322.7 kB / 0.771 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.1625, allocations: 147.3 kB / 0.7711 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.1628, allocations: 139.6 kB / 0.7712 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.1631, allocations: 306.7 kB / 0.7715 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.1634, allocations: 240.2 kB / 0.7718 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.1636, allocations: 123.6 kB / 0.7719 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1638, allocations: 139.5 kB / 0.772 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.1639, allocations: 20 kB / 0.772 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.1641, allocations: 163.6 kB / 0.7722 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.015e-05/0.1642, allocations: 79.8 kB / 0.7723 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1643, allocations: 119.4 kB / 0.7724 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.1647, allocations: 335 kB / 0.7727 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1647, allocations: 3.938 kB / 0.7727 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1647, allocations: 0 / 0.7727 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.1647, allocations: 0 / 0.7727 GB, free: 1.941 MB / 0.5606 GB 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.0006845/0.1654, allocations: 0.5107 MB / 0.7732 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.1654, allocations: 16.03 kB / 0.7732 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005563/0.166, allocations: 76.67 kB / 0.7733 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.1663, allocations: 251.8 kB / 0.7735 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.1663, allocations: 16.75 kB / 0.7735 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.1663, allocations: 16.38 kB / 0.7736 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.1667, allocations: 303.5 kB / 0.7739 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1668, allocations: 0 / 0.7739 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.1668, allocations: 12 kB / 0.7739 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/0.1668, allocations: 16.36 kB / 0.7739 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.1671, allocations: 193 kB / 0.7741 GB, free: 452 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3702/0.5373, allocations: 1.448 MB / 0.7755 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.5376, allocations: 175.7 kB / 0.7756 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.011e-05/0.5377, allocations: 36.58 kB / 0.7757 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.5377, allocations: 0.5 kB / 0.7757 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.5377, allocations: 35.39 kB / 0.7757 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 2.255e-06/0.5377, allocations: 0 / 0.7757 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0004901/0.5382, allocations: 232.4 kB / 0.7759 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.5382, allocations: 53.97 kB / 0.776 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.5384, allocations: 202 kB / 0.7762 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.5385, allocations: 26.58 kB / 0.7762 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/0.5385, allocations: 169.2 kB / 0.7764 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.5386, allocations: 23.05 kB / 0.7764 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.442e-05/0.5386, allocations: 33.8 kB / 0.7764 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.426e-05/0.5387, allocations: 325.6 kB / 0.7767 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.5388, allocations: 34.09 kB / 0.7768 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.8e-05/0.5389, allocations: 106.7 kB / 0.7769 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.539, allocations: 151.8 kB / 0.777 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.539, allocations: 1.406 kB / 0.777 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002985/0.5394, allocations: 190.9 kB / 0.7772 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5394, allocations: 6.031 kB / 0.7772 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.5394, allocations: 1.938 kB / 0.7772 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.5396, allocations: 27.08 kB / 0.7772 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5397, allocations: 32.66 kB / 0.7773 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008127/0.5405, allocations: 1.416 MB / 0.7786 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.5407, allocations: 23.14 kB / 0.7787 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.5407, allocations: 10.11 kB / 0.7787 GB, free: 11.54 MB / 0.5606 GB 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.0001139/0.5408, allocations: 150.3 kB / 0.7788 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.5408, allocations: 14.5 kB / 0.7788 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.5409, allocations: 19.89 kB / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.5409, allocations: 0 / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5409, allocations: 1.922 kB / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.5409, allocations: 5.766 kB / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.5414, allocations: 449.4 kB / 0.7793 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.5414, allocations: 0 / 0.7793 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.5414, allocations: 11.25 kB / 0.7793 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.699e-05/0.5415, allocations: 20.66 kB / 0.7793 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.5415, allocations: 6.297 kB / 0.7793 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006834/0.5422, allocations: 1.412 MB / 0.7807 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5422, allocations: 0 / 0.7807 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.5424, allocations: 216.6 kB / 0.7809 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.866e-05/0.5425, allocations: 101 kB / 0.781 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.5425, allocations: 8.719 kB / 0.781 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.5426, allocations: 12.16 kB / 0.781 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.5427, allocations: 4.922 kB / 0.781 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.5427, allocations: 2.094 kB / 0.781 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001217/0.5428, allocations: 144 kB / 0.7812 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5428, allocations: 0 / 0.7812 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003374/0.5432, allocations: 52.44 kB / 0.7812 GB, free: 9.375 MB / 0.5606 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.532e-05/0.5433, allocations: 102.8 kB / 0.7813 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00037/0.5436, allocations: 208.5 kB / 0.7815 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5437, allocations: 0 / 0.7815 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.5438, allocations: 155.3 kB / 0.7817 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.5442, allocations: 28.19 kB / 0.7817 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005658/0.5447, allocations: 354.4 kB / 0.782 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.545, allocations: 0.747 MB / 0.7828 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.208e-05/0.5451, allocations: 26.25 kB / 0.7828 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/0.5451, allocations: 14.22 kB / 0.7828 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.5451, allocations: 1.094 kB / 0.7828 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of Templates: time 0.004722/0.5498, allocations: 1.787 MB / 0.7845 GB, free: 7.961 MB / 0.5606 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)