Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.429/1.429, allocations: 252 MB / 268 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008923/0.0008923, allocations: 171.9 kB / 327.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 0.5786 GB, free: 20.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007813/0.0007815, allocations: 99 kB / 0.6832 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003874, allocations: 10.12 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.216, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003359/0.2194, allocations: 2.749 MB / 0.9041 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002101/0.2216, allocations: 1.321 MB / 0.9054 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.2218, allocations: 7.938 kB / 0.9054 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.222, allocations: 31.72 kB / 0.9055 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004532/0.2224, allocations: 135.4 kB / 0.9056 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000411/0.2229, allocations: 127.7 kB / 0.9057 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.2233, allocations: 434.8 kB / 0.9061 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003431/0.2236, allocations: 233.4 kB / 0.9064 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.2237, allocations: 99.62 kB / 0.9064 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.2241, allocations: 131.5 kB / 0.9066 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.2241, allocations: 8 kB / 0.9066 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.2245, allocations: 203.6 kB / 0.9068 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.884e-05/0.2245, allocations: 75.78 kB / 0.9068 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2247, allocations: 125.2 kB / 0.907 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002844/0.225, allocations: 247.7 kB / 0.9072 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.225, allocations: 0 / 0.9072 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.455e-06/0.225, allocations: 7.938 kB / 0.9072 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.523e-06/0.225, allocations: 0 / 0.9072 GB, free: 57.52 MB / 0.6042 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.0007728/0.2258, allocations: 491.1 kB / 0.9077 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2258, allocations: 8.031 kB / 0.9077 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005646/0.2264, allocations: 84.58 kB / 0.9078 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.2266, allocations: 246.1 kB / 0.908 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.2267, allocations: 12.75 kB / 0.908 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.2267, allocations: 24.36 kB / 0.908 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.2271, allocations: 295.4 kB / 0.9083 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.2271, allocations: 8 kB / 0.9083 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.2271, allocations: 8 kB / 0.9083 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.2272, allocations: 12.38 kB / 0.9083 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/0.2274, allocations: 196.9 kB / 0.9085 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.2286, allocations: 1.464 MB / 0.91 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.2288, allocations: 179.7 kB / 0.9101 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.2289, allocations: 32.84 kB / 0.9102 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.407e-06/0.2289, allocations: 4 kB / 0.9102 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.2289, allocations: 38.55 kB / 0.9102 GB, free: 54.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.2289, allocations: 0 / 0.9102 GB, free: 54.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004344/0.2294, allocations: 231.3 kB / 0.9104 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.2294, allocations: 51.41 kB / 0.9105 GB, free: 53.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.2296, allocations: 190.4 kB / 0.9107 GB, free: 53.63 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.2296, allocations: 29.7 kB / 0.9107 GB, free: 53.6 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.447e-05/0.2297, allocations: 171.8 kB / 0.9109 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2297, allocations: 27.64 kB / 0.9109 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/0.2297, allocations: 0 / 0.9109 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.311e-05/0.2298, allocations: 330.8 kB / 0.9112 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.135e-05/0.2298, allocations: 27.98 kB / 0.9112 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.365e-05/0.2299, allocations: 112.4 kB / 0.9113 GB, free: 52.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.23, allocations: 148.4 kB / 0.9115 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2301, allocations: 3.938 kB / 0.9115 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002417/0.2303, allocations: 186.4 kB / 0.9117 GB, free: 52.53 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2303, allocations: 8.062 kB / 0.9117 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2303, allocations: 4.094 kB / 0.9117 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001446/0.2305, allocations: 28.78 kB / 0.9117 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.792e-05/0.2306, allocations: 27.92 kB / 0.9117 GB, free: 52.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006959/0.2313, allocations: 1.319 MB / 0.913 GB, free: 51 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2314, allocations: 19.78 kB / 0.913 GB, free: 50.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2314, allocations: 8 kB / 0.913 GB, free: 50.97 MB / 0.6042 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 9.692e-05/0.2315, allocations: 145.9 kB / 0.9132 GB, free: 50.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.2316, allocations: 23.75 kB / 0.9132 GB, free: 50.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.2316, allocations: 21.34 kB / 0.9132 GB, free: 50.78 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.2316, allocations: 0 / 0.9132 GB, free: 50.78 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.2316, allocations: 0 / 0.9132 GB, free: 50.78 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2316, allocations: 8.016 kB / 0.9132 GB, free: 50.77 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003722/0.232, allocations: 443.2 kB / 0.9136 GB, free: 50.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.232, allocations: 0 / 0.9136 GB, free: 50.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.169e-05/0.2321, allocations: 15.92 kB / 0.9137 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.525e-05/0.2322, allocations: 20.84 kB / 0.9137 GB, free: 50.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.2322, allocations: 4 kB / 0.9137 GB, free: 50.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005822/0.2328, allocations: 1.308 MB / 0.915 GB, free: 48.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2328, allocations: 3.938 kB / 0.915 GB, free: 48.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.2329, allocations: 208.2 kB / 0.9152 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.233, allocations: 100.8 kB / 0.9153 GB, free: 48.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.233, allocations: 3.938 kB / 0.9153 GB, free: 48.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2331, allocations: 12.09 kB / 0.9153 GB, free: 48.44 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.2332, allocations: 7.984 kB / 0.9153 GB, free: 48.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.2332, allocations: 4 kB / 0.9153 GB, free: 48.43 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.889e-05/0.2333, allocations: 152.1 kB / 0.9154 GB, free: 48.28 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.72e-07/0.2333, allocations: 0 / 0.9154 GB, free: 48.28 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002741/0.2336, allocations: 55.78 kB / 0.9155 GB, free: 48.22 MB / 0.6042 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 9.31e-05/0.2337, allocations: 95.25 kB / 0.9156 GB, free: 48.12 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002994/0.234, allocations: 210.5 kB / 0.9158 GB, free: 47.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.234, allocations: 0 / 0.9158 GB, free: 47.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.2341, allocations: 150.6 kB / 0.9159 GB, free: 47.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.2344, allocations: 30.52 kB / 0.9159 GB, free: 47.71 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005133/0.235, allocations: 489.2 kB / 0.9164 GB, free: 47.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/0.2351, allocations: 0.7556 MB / 0.9172 GB, free: 46.42 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.2352, allocations: 15.44 kB / 0.9172 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.2352, allocations: 0 / 0.9172 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of Templates: time 0.003778/0.239, allocations: 2.934 MB / 0.92 GB, free: 43.48 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)