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.001609/0.001609, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001738/0.001738, allocations: 187 kB / 17.34 MB, free: 5.742 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002298/0.002298, allocations: 292.7 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9791/0.9791, allocations: 169.2 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 91.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5252/0.5271, allocations: 86.98 MB / 0.767 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004837/0.532, allocations: 3.078 MB / 0.77 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002216/0.5342, allocations: 1.324 MB / 0.7713 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.5344, allocations: 4 kB / 0.7713 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.5356, allocations: 338.1 kB / 0.7717 GB, free: 15.15 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004151/0.536, allocations: 143.3 kB / 0.7718 GB, free: 15.01 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.5364, allocations: 139.6 kB / 0.7719 GB, free: 14.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.5368, allocations: 302.8 kB / 0.7722 GB, free: 14.58 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004514/0.5373, allocations: 240.3 kB / 0.7724 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.5375, allocations: 123.5 kB / 0.7726 GB, free: 14.22 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.5378, allocations: 143.5 kB / 0.7727 GB, free: 14.08 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.5378, allocations: 20 kB / 0.7727 GB, free: 14.06 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000318/0.5382, allocations: 171.6 kB / 0.7729 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.5383, allocations: 71.81 kB / 0.7729 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.5384, allocations: 111.5 kB / 0.7731 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.5389, allocations: 337.5 kB / 0.7734 GB, free: 13.39 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.5389, allocations: 0 / 0.7734 GB, free: 13.39 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5389, allocations: 0 / 0.7734 GB, free: 13.39 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.5389, allocations: 0 / 0.7734 GB, free: 13.39 MB / 0.545 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.0008743/0.5398, allocations: 0.5186 MB / 0.7739 GB, free: 12.82 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.5398, allocations: 12.03 kB / 0.7739 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005957/0.5404, allocations: 76.58 kB / 0.774 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.5408, allocations: 250.6 kB / 0.7742 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.5408, allocations: 20.73 kB / 0.7742 GB, free: 12.43 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.5409, allocations: 24.31 kB / 0.7742 GB, free: 12.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.5413, allocations: 291.6 kB / 0.7745 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.5413, allocations: 3.938 kB / 0.7745 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.5414, allocations: 8 kB / 0.7745 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.671e-05/0.5414, allocations: 20.36 kB / 0.7746 GB, free: 12.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.5417, allocations: 197 kB / 0.7747 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.5432, allocations: 1.456 MB / 0.7762 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.5435, allocations: 175.7 kB / 0.7763 GB, free: 10.06 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.874e-05/0.5436, allocations: 36.84 kB / 0.7764 GB, free: 10.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.5436, allocations: 3.938 kB / 0.7764 GB, free: 10.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.5436, allocations: 34.56 kB / 0.7764 GB, free: 9.973 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.5436, allocations: 0 / 0.7764 GB, free: 9.973 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004759/0.5441, allocations: 219.4 kB / 0.7766 GB, free: 9.73 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.5442, allocations: 51.41 kB / 0.7767 GB, free: 9.668 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.5444, allocations: 202.3 kB / 0.7769 GB, free: 9.461 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.5444, allocations: 33.64 kB / 0.7769 GB, free: 9.422 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.5445, allocations: 167.8 kB / 0.777 GB, free: 9.254 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.5445, allocations: 23.7 kB / 0.7771 GB, free: 9.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.518e-05/0.5446, allocations: 37.7 kB / 0.7771 GB, free: 9.188 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.5447, allocations: 322.8 kB / 0.7774 GB, free: 8.863 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.435e-05/0.5448, allocations: 35.98 kB / 0.7774 GB, free: 8.828 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.5449, allocations: 104.5 kB / 0.7775 GB, free: 8.695 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.545, allocations: 144.5 kB / 0.7777 GB, free: 8.523 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5451, allocations: 0 / 0.7777 GB, free: 8.523 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000313/0.5454, allocations: 194.3 kB / 0.7779 GB, free: 8.324 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.5454, allocations: 14.8 kB / 0.7779 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.5454, allocations: 0 / 0.7779 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.5456, allocations: 32.78 kB / 0.7779 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.5457, allocations: 20 kB / 0.7779 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.5468, allocations: 1.427 MB / 0.7793 GB, free: 6.691 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.5469, allocations: 19.84 kB / 0.7793 GB, free: 6.672 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.5469, allocations: 4 kB / 0.7794 GB, free: 6.668 MB / 0.545 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.0001328/0.5471, allocations: 152.3 kB / 0.7795 GB, free: 6.512 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.5471, allocations: 23.75 kB / 0.7795 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.267e-05/0.5472, allocations: 17.39 kB / 0.7795 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5472, allocations: 0 / 0.7795 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.5472, allocations: 0 / 0.7795 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.5472, allocations: 4 kB / 0.7795 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.5477, allocations: 451.1 kB / 0.78 GB, free: 5.965 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.5477, allocations: 4 kB / 0.78 GB, free: 5.961 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.993e-05/0.5478, allocations: 8 kB / 0.78 GB, free: 5.953 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.231e-05/0.5479, allocations: 20.84 kB / 0.78 GB, free: 5.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.5479, allocations: 4 kB / 0.78 GB, free: 5.926 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009688/0.5488, allocations: 1.418 MB / 0.7814 GB, free: 4.367 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5489, allocations: 0 / 0.7814 GB, free: 4.367 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.5491, allocations: 216.2 kB / 0.7816 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.078e-05/0.5492, allocations: 100.9 kB / 0.7817 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.5492, allocations: 0 / 0.7817 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.5493, allocations: 4 kB / 0.7817 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.5493, allocations: 4 kB / 0.7817 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.5494, allocations: 7.984 kB / 0.7817 GB, free: 4.004 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001397/0.5495, allocations: 142.1 kB / 0.7818 GB, free: 3.867 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5495, allocations: 4 kB / 0.7818 GB, free: 3.863 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003432/0.5499, allocations: 51.84 kB / 0.7819 GB, free: 3.812 MB / 0.545 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 0.0001066/0.55, allocations: 103.2 kB / 0.782 GB, free: 3.699 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003664/0.5503, allocations: 206.5 kB / 0.7822 GB, free: 3.484 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.5504, allocations: 0 / 0.7822 GB, free: 3.484 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.5505, allocations: 159.6 kB / 0.7823 GB, free: 3.316 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.5509, allocations: 41.09 kB / 0.7824 GB, free: 3.277 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/0.5516, allocations: 380.4 kB / 0.7827 GB, free: 2.875 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.5519, allocations: 0.7475 MB / 0.7835 GB, free: 2.102 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.068e-05/0.552, allocations: 15.44 kB / 0.7835 GB, free: 2.086 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.552, allocations: 0 / 0.7835 GB, free: 2.086 MB / 0.545 GB Notification: Performance of Templates: time 0.005057/0.557, allocations: 2.982 MB / 0.7864 GB, free: 15.12 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)