Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 112.6 kB / 16.37 MB, free: 6 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.001167/0.001166, allocations: 196 kB / 17.31 MB, free: 5.613 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.272/1.272, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 293.8 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9024/0.9024, allocations: 169.2 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001662, allocations: 94.97 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1591, allocations: 86.98 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005625/0.1648, allocations: 4.333 MB / 0.6858 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1674, allocations: 1.858 MB / 0.6877 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.1676, allocations: 8 kB / 0.6877 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.169, allocations: 0.6023 MB / 0.6883 GB, free: 0.625 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.1695, allocations: 262.6 kB / 0.6885 GB, free: 376 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.17, allocations: 251.3 kB / 0.6887 GB, free: 124 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.2827/0.4527, allocations: 0.605 MB / 0.6893 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.4538, allocations: 460.8 kB / 0.6898 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.4544, allocations: 247.5 kB / 0.69 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007037/0.4551, allocations: 271.5 kB / 0.6903 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.4553, allocations: 37 kB / 0.6903 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006092/0.4559, allocations: 256.3 kB / 0.6906 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.4561, allocations: 151.7 kB / 0.6907 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003498/0.4565, allocations: 218.5 kB / 0.6909 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.4576, allocations: 0.6086 MB / 0.6915 GB, free: 12.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4576, allocations: 2.312 kB / 0.6915 GB, free: 12.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4576, allocations: 0 / 0.6915 GB, free: 12.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.4577, allocations: 0 / 0.6915 GB, free: 12.59 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001571/0.4593, allocations: 0.7285 MB / 0.6922 GB, free: 12.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.4593, allocations: 10.23 kB / 0.6922 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.4604, allocations: 145.2 kB / 0.6924 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005908/0.461, allocations: 342.4 kB / 0.6927 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.461, allocations: 24.06 kB / 0.6927 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.692e-05/0.4611, allocations: 35.41 kB / 0.6927 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008514/0.462, allocations: 0.5279 MB / 0.6933 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.462, allocations: 9.875 kB / 0.6933 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.4621, allocations: 16.03 kB / 0.6933 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.085e-05/0.4621, allocations: 34.47 kB / 0.6933 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006085/0.4627, allocations: 382.6 kB / 0.6937 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.465, allocations: 2.395 MB / 0.696 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.4655, allocations: 274.9 kB / 0.6963 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.4657, allocations: 109 kB / 0.6964 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.4657, allocations: 6.219 kB / 0.6964 GB, free: 9.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.4657, allocations: 36.72 kB / 0.6964 GB, free: 9.871 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.4657, allocations: 0 / 0.6964 GB, free: 9.871 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001999/0.4677, allocations: 1.127 MB / 0.6975 GB, free: 9.297 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/0.4678, allocations: 53.88 kB / 0.6976 GB, free: 9.234 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.4681, allocations: 299.1 kB / 0.6979 GB, free: 9.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.4681, allocations: 30.77 kB / 0.6979 GB, free: 9.035 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.4682, allocations: 231.1 kB / 0.6981 GB, free: 8.848 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.4683, allocations: 85.08 kB / 0.6982 GB, free: 8.781 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.661e-05/0.4684, allocations: 62.36 kB / 0.6983 GB, free: 8.738 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.4684, allocations: 343.1 kB / 0.6986 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.4686, allocations: 107.1 kB / 0.6987 GB, free: 8.371 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.4688, allocations: 186.7 kB / 0.6989 GB, free: 8.234 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.4692, allocations: 324.5 kB / 0.6992 GB, free: 8.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4692, allocations: 0 / 0.6992 GB, free: 8.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007082/0.4699, allocations: 439.6 kB / 0.6996 GB, free: 7.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4699, allocations: 6.891 kB / 0.6996 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4699, allocations: 3 kB / 0.6996 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.4703, allocations: 98.58 kB / 0.6997 GB, free: 7.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.4706, allocations: 64.12 kB / 0.6998 GB, free: 7.816 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.4729, allocations: 4.396 MB / 0.7041 GB, free: 3.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.4732, allocations: 8.5 kB / 0.7041 GB, free: 3.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.4732, allocations: 15.06 kB / 0.7041 GB, free: 3.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001916/0.4734, allocations: 181.6 kB / 0.7042 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.4735, allocations: 34.38 kB / 0.7043 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.475e-05/0.4736, allocations: 38.72 kB / 0.7043 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4736, allocations: 2.031 kB / 0.7043 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.4736, allocations: 2.438 kB / 0.7043 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.4736, allocations: 1.359 kB / 0.7043 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.474, allocations: 399.5 kB / 0.7047 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4741, allocations: 0.9844 kB / 0.7047 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.4743, allocations: 36.17 kB / 0.7047 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003/0.4746, allocations: 99.69 kB / 0.7048 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.4746, allocations: 0.7812 kB / 0.7048 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002542/0.4771, allocations: 4.383 MB / 0.7091 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4772, allocations: 0.6562 kB / 0.7091 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000852/0.478, allocations: 0.5624 MB / 0.7097 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.4782, allocations: 130.5 kB / 0.7098 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.4782, allocations: 9.719 kB / 0.7098 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.4784, allocations: 10.22 kB / 0.7098 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.4785, allocations: 19.14 kB / 0.7098 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.4785, allocations: 12.66 kB / 0.7098 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000254/0.4788, allocations: 208.5 kB / 0.71 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4788, allocations: 0 / 0.71 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005053/0.4793, allocations: 99.72 kB / 0.7101 GB, free: 14.11 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000133/0.4794, allocations: 113.7 kB / 0.7102 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009194/0.4804, allocations: 0.6048 MB / 0.7108 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4804, allocations: 0.6875 kB / 0.7108 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.4809, allocations: 479.5 kB / 0.7113 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.4814, allocations: 69.02 kB / 0.7114 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.4828, allocations: 0.707 MB / 0.712 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.4833, allocations: 0.836 MB / 0.7129 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002069/0.4835, allocations: 57.55 kB / 0.7129 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.974e-05/0.4836, allocations: 23.47 kB / 0.7129 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.4836, allocations: 0 / 0.7129 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of Templates: time 0.0105/0.4941, allocations: 4.427 MB / 0.7173 GB, free: 11.77 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)