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.001483/0.001483, allocations: 117.7 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.001566/0.001566, allocations: 193.5 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.34/1.34, 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.002124/0.002124, allocations: 299.1 kB / 291.4 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.9263/0.9263, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 94.8 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1585, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005719/0.1643, allocations: 4.336 MB / 0.6858 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.1669, allocations: 1.862 MB / 0.6877 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.1671, allocations: 11.94 kB / 0.6877 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.1686, allocations: 0.5876 MB / 0.6883 GB, free: 0.625 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004609/0.169, allocations: 266.6 kB / 0.6885 GB, free: 372 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.1696, allocations: 246.7 kB / 0.6887 GB, free: 128 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.2471/0.4167, allocations: 0.6214 MB / 0.6893 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000721/0.4174, allocations: 452.8 kB / 0.6898 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.4177, allocations: 245.9 kB / 0.69 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.4181, allocations: 269.5 kB / 0.6903 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.986e-05/0.4182, allocations: 40.53 kB / 0.6903 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004741/0.4187, allocations: 256.9 kB / 0.6906 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.4189, allocations: 146.7 kB / 0.6907 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.4191, allocations: 219.5 kB / 0.6909 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006864/0.4198, allocations: 0.6098 MB / 0.6915 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4198, allocations: 0 / 0.6915 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4198, allocations: 1.031 kB / 0.6915 GB, free: 12.62 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.4198, allocations: 0.7188 kB / 0.6915 GB, free: 12.62 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.001003/0.4208, allocations: 0.7286 MB / 0.6922 GB, free: 12.13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.729e-05/0.4208, allocations: 9.469 kB / 0.6922 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000952/0.4218, allocations: 148.5 kB / 0.6924 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.4223, allocations: 335.2 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.4223, allocations: 25.53 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.489e-05/0.4224, allocations: 35.73 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.4231, allocations: 0.5338 MB / 0.6933 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.4231, allocations: 6.188 kB / 0.6933 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.4232, allocations: 14.75 kB / 0.6933 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.35e-05/0.4232, allocations: 31.73 kB / 0.6933 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.4238, allocations: 389.6 kB / 0.6937 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.4259, allocations: 2.399 MB / 0.696 GB, free: 9.984 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.4264, allocations: 265.5 kB / 0.6963 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.4266, allocations: 110.9 kB / 0.6964 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4266, allocations: 6.578 kB / 0.6964 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.4266, allocations: 37.78 kB / 0.6964 GB, free: 9.902 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.303e-06/0.4266, allocations: 0 / 0.6964 GB, free: 9.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001935/0.4285, allocations: 1.124 MB / 0.6975 GB, free: 9.309 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.792e-05/0.4286, allocations: 55.25 kB / 0.6976 GB, free: 9.246 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.4289, allocations: 300.8 kB / 0.6979 GB, free: 9.082 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.4289, allocations: 36.05 kB / 0.6979 GB, free: 9.043 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.339e-05/0.429, allocations: 226.6 kB / 0.6981 GB, free: 8.855 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.666e-05/0.429, allocations: 84.61 kB / 0.6982 GB, free: 8.793 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.87e-05/0.4291, allocations: 62.48 kB / 0.6983 GB, free: 8.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.081e-05/0.4292, allocations: 346.9 kB / 0.6986 GB, free: 8.418 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.4294, allocations: 103.9 kB / 0.6987 GB, free: 8.383 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.4295, allocations: 182.6 kB / 0.6989 GB, free: 8.246 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.4299, allocations: 327.4 kB / 0.6992 GB, free: 8.051 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4299, allocations: 1.562 kB / 0.6992 GB, free: 8.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006928/0.4306, allocations: 441.9 kB / 0.6996 GB, free: 7.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.4306, allocations: 6.031 kB / 0.6996 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4306, allocations: 3.031 kB / 0.6996 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.431, allocations: 99.25 kB / 0.6997 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.4313, allocations: 64.91 kB / 0.6998 GB, free: 7.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.4335, allocations: 4.394 MB / 0.7041 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.4337, allocations: 9.062 kB / 0.7041 GB, free: 3.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.4337, allocations: 14.67 kB / 0.7041 GB, free: 3.512 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.0001542/0.4339, allocations: 179.1 kB / 0.7042 GB, free: 3.367 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/0.434, allocations: 36.28 kB / 0.7043 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.434, allocations: 37.39 kB / 0.7043 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.434, allocations: 3.438 kB / 0.7043 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.4341, allocations: 2.281 kB / 0.7043 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4341, allocations: 1.734 kB / 0.7043 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.4345, allocations: 396 kB / 0.7047 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4345, allocations: 1.156 kB / 0.7047 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.4347, allocations: 33.44 kB / 0.7047 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002799/0.435, allocations: 102.4 kB / 0.7048 GB, free: 3.008 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.435, allocations: 1.844 kB / 0.7048 GB, free: 3.008 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.4374, allocations: 4.393 MB / 0.7091 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4374, allocations: 0 / 0.7091 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007903/0.4382, allocations: 0.5672 MB / 0.7097 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.4383, allocations: 123.1 kB / 0.7098 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.4384, allocations: 4.969 kB / 0.7098 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.4386, allocations: 19.12 kB / 0.7098 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.4387, allocations: 15.02 kB / 0.7098 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.4387, allocations: 9.375 kB / 0.7098 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000211/0.4389, allocations: 209.3 kB / 0.71 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4389, allocations: 3.469 kB / 0.71 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000478/0.4394, allocations: 99.56 kB / 0.7101 GB, free: 14.12 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.0001201/0.4395, allocations: 107.9 kB / 0.7102 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008309/0.4403, allocations: 0.5977 MB / 0.7108 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4404, allocations: 0 / 0.7108 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004891/0.4409, allocations: 479.2 kB / 0.7113 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.4414, allocations: 85.09 kB / 0.7114 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.4425, allocations: 0.6995 MB / 0.712 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.4429, allocations: 0.8346 MB / 0.7129 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000177/0.4431, allocations: 57.48 kB / 0.7129 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.847e-05/0.4432, allocations: 23.92 kB / 0.7129 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.4432, allocations: 1.094 kB / 0.7129 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of Templates: time 0.008865/0.4521, allocations: 4.43 MB / 0.7173 GB, free: 11.79 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)