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.001295/0.001295, allocations: 100.6 kB / 16.41 MB, free: 5.977 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.00128/0.001281, allocations: 192.8 kB / 17.34 MB, free: 5.586 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002398/0.002398, allocations: 294.2 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9703/0.9703, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 91.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.4855, allocations: 86.98 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.00511/0.4907, allocations: 3.071 MB / 0.77 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002273/0.493, allocations: 1.324 MB / 0.7713 GB, free: 15.53 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.4932, allocations: 4 kB / 0.7713 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.4943, allocations: 334.7 kB / 0.7716 GB, free: 15.2 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.4948, allocations: 147.2 kB / 0.7718 GB, free: 15.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.4952, allocations: 135.6 kB / 0.7719 GB, free: 14.92 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000425/0.4956, allocations: 310.7 kB / 0.7722 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000479/0.4961, allocations: 228.3 kB / 0.7724 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.4963, allocations: 127.5 kB / 0.7725 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000397/0.4968, allocations: 147.5 kB / 0.7727 GB, free: 14.12 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.933e-05/0.4968, allocations: 16 kB / 0.7727 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000374/0.4972, allocations: 163.7 kB / 0.7729 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.4973, allocations: 83.78 kB / 0.7729 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.4975, allocations: 115.4 kB / 0.7731 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.498, allocations: 325.6 kB / 0.7734 GB, free: 13.43 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.498, allocations: 4 kB / 0.7734 GB, free: 13.43 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.803e-06/0.498, allocations: 0 / 0.7734 GB, free: 13.43 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.4981, allocations: 0 / 0.7734 GB, free: 13.43 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.0009041/0.499, allocations: 0.5147 MB / 0.7739 GB, free: 12.86 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.499, allocations: 8.031 kB / 0.7739 GB, free: 12.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006277/0.4997, allocations: 80.58 kB / 0.774 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.5, allocations: 247.9 kB / 0.7742 GB, free: 12.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5, allocations: 24.69 kB / 0.7742 GB, free: 12.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.5001, allocations: 16.38 kB / 0.7742 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.5005, allocations: 295.5 kB / 0.7745 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.5005, allocations: 0 / 0.7745 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.5006, allocations: 15.94 kB / 0.7745 GB, free: 12.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.535e-05/0.5006, allocations: 16.38 kB / 0.7745 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.5009, allocations: 200.9 kB / 0.7747 GB, free: 11.92 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.5025, allocations: 1.46 MB / 0.7762 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.5028, allocations: 175.7 kB / 0.7763 GB, free: 10.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.987e-05/0.5028, allocations: 32.84 kB / 0.7764 GB, free: 10.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 7.854e-06/0.5028, allocations: 0 / 0.7764 GB, free: 10.06 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.5029, allocations: 42.55 kB / 0.7764 GB, free: 10.01 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.5029, allocations: 0 / 0.7764 GB, free: 10.01 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004808/0.5034, allocations: 223.6 kB / 0.7766 GB, free: 9.766 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.5034, allocations: 55.34 kB / 0.7767 GB, free: 9.699 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.5036, allocations: 202.3 kB / 0.7769 GB, free: 9.492 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.5036, allocations: 29.7 kB / 0.7769 GB, free: 9.457 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.857e-05/0.5037, allocations: 163.6 kB / 0.777 GB, free: 9.293 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.5038, allocations: 23.7 kB / 0.7771 GB, free: 9.27 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.5038, allocations: 29.72 kB / 0.7771 GB, free: 9.234 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.5039, allocations: 330.8 kB / 0.7774 GB, free: 8.902 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.639e-05/0.504, allocations: 39.97 kB / 0.7774 GB, free: 8.863 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.657e-05/0.5041, allocations: 100.5 kB / 0.7775 GB, free: 8.734 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.5043, allocations: 144.4 kB / 0.7777 GB, free: 8.562 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5043, allocations: 0 / 0.7777 GB, free: 8.562 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003011/0.5046, allocations: 190.3 kB / 0.7779 GB, free: 8.367 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.5046, allocations: 6.656 kB / 0.7779 GB, free: 8.363 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5046, allocations: 4 kB / 0.7779 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.5048, allocations: 24.84 kB / 0.7779 GB, free: 8.332 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.5049, allocations: 24.08 kB / 0.7779 GB, free: 8.309 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.506, allocations: 1.43 MB / 0.7793 GB, free: 6.738 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.5061, allocations: 15.88 kB / 0.7793 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.5061, allocations: 11.98 kB / 0.7793 GB, free: 6.711 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.0001329/0.5063, allocations: 160.2 kB / 0.7795 GB, free: 6.547 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.5063, allocations: 11.81 kB / 0.7795 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.5064, allocations: 17.41 kB / 0.7795 GB, free: 6.516 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.5064, allocations: 7.984 kB / 0.7795 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.5064, allocations: 0 / 0.7795 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.5064, allocations: 0 / 0.7795 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.5069, allocations: 451.1 kB / 0.78 GB, free: 6.008 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5069, allocations: 4 kB / 0.78 GB, free: 6.004 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.777e-05/0.5069, allocations: 7.984 kB / 0.78 GB, free: 5.996 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-05/0.507, allocations: 24.91 kB / 0.78 GB, free: 5.969 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.507, allocations: 4 kB / 0.78 GB, free: 5.965 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009265/0.508, allocations: 1.41 MB / 0.7814 GB, free: 4.414 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.508, allocations: 0 / 0.7814 GB, free: 4.414 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.5082, allocations: 228.6 kB / 0.7816 GB, free: 4.172 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.5083, allocations: 88.92 kB / 0.7817 GB, free: 4.066 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.5083, allocations: 3.984 kB / 0.7817 GB, free: 4.062 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.5084, allocations: 8 kB / 0.7817 GB, free: 4.055 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.5085, allocations: 4 kB / 0.7817 GB, free: 4.051 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.5085, allocations: 0 / 0.7817 GB, free: 4.051 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001253/0.5086, allocations: 150.7 kB / 0.7818 GB, free: 3.906 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5086, allocations: 0 / 0.7818 GB, free: 3.906 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003519/0.509, allocations: 55.84 kB / 0.7819 GB, free: 3.852 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.0001129/0.5091, allocations: 99.23 kB / 0.782 GB, free: 3.742 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003707/0.5095, allocations: 210.5 kB / 0.7822 GB, free: 3.523 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5095, allocations: 0 / 0.7822 GB, free: 3.523 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.5096, allocations: 155.2 kB / 0.7823 GB, free: 3.359 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.51, allocations: 31.97 kB / 0.7824 GB, free: 3.328 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006737/0.5107, allocations: 380.5 kB / 0.7827 GB, free: 2.926 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.511, allocations: 0.7514 MB / 0.7835 GB, free: 2.148 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.5111, allocations: 15.44 kB / 0.7835 GB, free: 2.133 MB / 0.545 GB Notification: Performance of SimCode: time 4.7e-07/0.5111, allocations: 0 / 0.7835 GB, free: 2.133 MB / 0.545 GB Notification: Performance of Templates: time 0.005107/0.5162, allocations: 2.995 MB / 0.7864 GB, free: 15.16 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)