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.001231/0.001231, allocations: 104.7 kB / 15.98 MB, free: 6.34 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.001082/0.001082, allocations: 197.8 kB / 16.91 MB, free: 6.184 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.262/1.262, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002022/0.002022, allocations: 292.6 kB / 291 MB, free: 14.74 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9008/0.9008, allocations: 169.2 MB / 0.4985 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 89.52 kB / 0.5953 GB, free: 15.53 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1865, allocations: 86.98 MB / 0.6803 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006053/0.1926, allocations: 4.378 MB / 0.6845 GB, free: 4.164 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.1955, allocations: 1.858 MB / 0.6864 GB, free: 2.297 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002541/0.1958, allocations: 4 kB / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1974, allocations: 0.5634 MB / 0.6869 GB, free: 1.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006496/0.1981, allocations: 238.9 kB / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006745/0.1988, allocations: 227.5 kB / 0.6874 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007469/0.1995, allocations: 0.6112 MB / 0.688 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.2003, allocations: 0.5066 MB / 0.6884 GB, free: 156 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3154/0.5158, allocations: 242.1 kB / 0.6887 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007319/0.5165, allocations: 281.1 kB / 0.6889 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.322e-05/0.5166, allocations: 36.59 kB / 0.689 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005579/0.5172, allocations: 252.6 kB / 0.6892 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.5174, allocations: 156.2 kB / 0.6894 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.5176, allocations: 219.3 kB / 0.6896 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.5184, allocations: 480.9 kB / 0.69 GB, free: 12.29 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5184, allocations: 0.9062 kB / 0.69 GB, free: 12.29 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.5184, allocations: 0 / 0.69 GB, free: 12.29 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.5184, allocations: 1 kB / 0.69 GB, free: 12.29 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.001259/0.5197, allocations: 0.7247 MB / 0.6908 GB, free: 11.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.5197, allocations: 10.88 kB / 0.6908 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009562/0.5207, allocations: 146.4 kB / 0.6909 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.5211, allocations: 333.2 kB / 0.6912 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.5211, allocations: 28.77 kB / 0.6912 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.945e-05/0.5212, allocations: 31.72 kB / 0.6913 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008495/0.522, allocations: 0.5329 MB / 0.6918 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.5221, allocations: 9.531 kB / 0.6918 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.5221, allocations: 16.22 kB / 0.6918 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.491e-05/0.5222, allocations: 29.53 kB / 0.6918 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006438/0.5229, allocations: 387.8 kB / 0.6922 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.5253, allocations: 2.41 MB / 0.6946 GB, free: 9.656 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.5258, allocations: 262.1 kB / 0.6948 GB, free: 9.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.526, allocations: 110.7 kB / 0.6949 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.526, allocations: 3.344 kB / 0.6949 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.5261, allocations: 39.91 kB / 0.695 GB, free: 9.578 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.753e-06/0.5261, allocations: 0 / 0.695 GB, free: 9.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002175/0.5283, allocations: 1.13 MB / 0.6961 GB, free: 9.027 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.5283, allocations: 53.94 kB / 0.6961 GB, free: 8.965 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.5286, allocations: 297.2 kB / 0.6964 GB, free: 8.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.5287, allocations: 27.8 kB / 0.6964 GB, free: 8.828 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.5288, allocations: 234.8 kB / 0.6967 GB, free: 8.676 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.878e-05/0.5289, allocations: 81.55 kB / 0.6967 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.529, allocations: 67.92 kB / 0.6968 GB, free: 8.602 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.5291, allocations: 341.5 kB / 0.6971 GB, free: 8.285 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.5293, allocations: 105.1 kB / 0.6972 GB, free: 8.285 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.5295, allocations: 187.6 kB / 0.6974 GB, free: 8.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004312/0.5299, allocations: 318.5 kB / 0.6977 GB, free: 8.086 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5299, allocations: 0.9688 kB / 0.6977 GB, free: 8.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000773/0.5307, allocations: 440.2 kB / 0.6981 GB, free: 7.941 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5307, allocations: 9.844 kB / 0.6981 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.5308, allocations: 2.688 kB / 0.6981 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.5311, allocations: 99.89 kB / 0.6982 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.5314, allocations: 68.86 kB / 0.6983 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/0.534, allocations: 4.39 MB / 0.7026 GB, free: 3.602 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002292/0.5343, allocations: 8.938 kB / 0.7026 GB, free: 3.598 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.5343, allocations: 14.03 kB / 0.7026 GB, free: 3.594 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.0002224/0.5346, allocations: 181.7 kB / 0.7028 GB, free: 3.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.008e-05/0.5346, allocations: 35.75 kB / 0.7028 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.153e-05/0.5347, allocations: 41.8 kB / 0.7029 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5347, allocations: 6.625 kB / 0.7029 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.5347, allocations: 5.469 kB / 0.7029 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.5347, allocations: 2.859 kB / 0.7029 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.5352, allocations: 393.9 kB / 0.7032 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.5352, allocations: 1.281 kB / 0.7032 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.5354, allocations: 38.56 kB / 0.7033 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002873/0.5357, allocations: 96.62 kB / 0.7034 GB, free: 3.086 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.5357, allocations: 5.031 kB / 0.7034 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002693/0.5384, allocations: 4.386 MB / 0.7077 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.5385, allocations: 1.406 kB / 0.7077 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.5395, allocations: 0.5632 MB / 0.7082 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.5396, allocations: 120.5 kB / 0.7083 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.494e-05/0.5397, allocations: 5.781 kB / 0.7083 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.5399, allocations: 14.33 kB / 0.7084 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.54, allocations: 22.17 kB / 0.7084 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.54, allocations: 4.156 kB / 0.7084 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002459/0.5402, allocations: 209.2 kB / 0.7086 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.4e-07/0.5402, allocations: 0 / 0.7086 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004988/0.5408, allocations: 103.1 kB / 0.7087 GB, free: 14.21 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.0001497/0.5409, allocations: 108.3 kB / 0.7088 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009519/0.5419, allocations: 0.629 MB / 0.7094 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.5419, allocations: 0 / 0.7094 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005366/0.5424, allocations: 476.1 kB / 0.7098 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.5429, allocations: 83.55 kB / 0.7099 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.5443, allocations: 0.9039 MB / 0.7108 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.5447, allocations: 0.8353 MB / 0.7116 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.5448, allocations: 24.34 kB / 0.7116 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.5448, allocations: 0 / 0.7116 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of Templates: time 0.01325/0.5581, allocations: 8.663 MB / 0.7201 GB, free: 10.45 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)