Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001984/0.001984, allocations: 192 kB / 16.25 MB, free: 6.633 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.438/1.438, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002512/0.002512, allocations: 286.5 kB / 290.4 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.507 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 102.1 kB / 0.6059 GB, free: 25.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.165, allocations: 89.15 MB / 0.693 GB, free: 4.719 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00765/0.1727, allocations: 5.457 MB / 0.6983 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004498/0.1772, allocations: 2.625 MB / 0.7009 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004167/0.1776, allocations: 15.88 kB / 0.7009 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.1795, allocations: 0.6423 MB / 0.7015 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00108/0.1806, allocations: 370.1 kB / 0.7019 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000944/0.1816, allocations: 362 kB / 0.7022 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001138/0.1827, allocations: 0.9513 MB / 0.7032 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008366/0.1835, allocations: 0.5144 MB / 0.7037 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005529/0.1841, allocations: 370.5 kB / 0.704 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005639/0.1847, allocations: 418.4 kB / 0.7044 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.524e-05/0.1848, allocations: 48 kB / 0.7045 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006863/0.1855, allocations: 363.3 kB / 0.7048 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.1857, allocations: 243.3 kB / 0.705 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.1861, allocations: 354.2 kB / 0.7054 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.1872, allocations: 0.9929 MB / 0.7063 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1872, allocations: 3.938 kB / 0.7063 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.472e-06/0.1872, allocations: 3.938 kB / 0.7064 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.1873, allocations: 0 / 0.7064 GB, free: 7.012 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001696/0.189, allocations: 0.9621 MB / 0.7073 GB, free: 6 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.189, allocations: 8.031 kB / 0.7073 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.1904, allocations: 207.7 kB / 0.7075 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000709/0.1912, allocations: 486.5 kB / 0.708 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.1912, allocations: 33.38 kB / 0.708 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/0.1914, allocations: 56.53 kB / 0.708 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.1927, allocations: 0.8318 MB / 0.7089 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.1927, allocations: 7.938 kB / 0.7089 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.037e-05/0.1928, allocations: 24 kB / 0.7089 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.193, allocations: 60.95 kB / 0.7089 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009209/0.1939, allocations: 0.5736 MB / 0.7095 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004807/0.1987, allocations: 4.585 MB / 0.714 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.1992, allocations: 295.2 kB / 0.7143 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.1996, allocations: 225.3 kB / 0.7145 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1996, allocations: 4.281 kB / 0.7145 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1997, allocations: 38.83 kB / 0.7145 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 1.743e-06/0.1997, allocations: 0 / 0.7145 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.006843/0.2065, allocations: 2.631 MB / 0.7171 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.2066, allocations: 55.41 kB / 0.7171 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/0.2072, allocations: 461.9 kB / 0.7176 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.2072, allocations: 37.7 kB / 0.7176 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.2076, allocations: 335.7 kB / 0.7179 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.2077, allocations: 141.9 kB / 0.7181 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.2079, allocations: 106.2 kB / 0.7182 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.2081, allocations: 362.8 kB / 0.7185 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.2085, allocations: 237 kB / 0.7188 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.209, allocations: 414.4 kB / 0.7191 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000934/0.21, allocations: 0.674 MB / 0.7198 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.21, allocations: 4 kB / 0.7198 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001911/0.2119, allocations: 0.9207 MB / 0.7207 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2119, allocations: 8.656 kB / 0.7207 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.2119, allocations: 4 kB / 0.7207 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009111/0.2128, allocations: 226.4 kB / 0.7209 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.2134, allocations: 119.8 kB / 0.721 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005995/0.2194, allocations: 5.336 MB / 0.7263 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.22, allocations: 27.97 kB / 0.7263 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.602e-05/0.22, allocations: 24 kB / 0.7263 GB, free: 1.258 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003596/0.2204, allocations: 235.1 kB / 0.7265 GB, free: 1.02 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.2205, allocations: 59.28 kB / 0.7266 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.2223, allocations: 0.7735 MB / 0.7273 GB, free: 172 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2223, allocations: 7.984 kB / 0.7274 GB, free: 164 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.2223, allocations: 4 kB / 0.7274 GB, free: 160 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2223, allocations: 4 kB / 0.7274 GB, free: 156 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.2249, allocations: 1.494 MB / 0.7288 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2249, allocations: 0 / 0.7288 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.2253, allocations: 75.88 kB / 0.7289 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/0.226, allocations: 206.6 kB / 0.7291 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.2261, allocations: 8 kB / 0.7291 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005761/0.2318, allocations: 5.285 MB / 0.7343 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2319, allocations: 0 / 0.7343 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.2339, allocations: 1.139 MB / 0.7354 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.2342, allocations: 164.4 kB / 0.7355 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.2343, allocations: 15.94 kB / 0.7355 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.2346, allocations: 27.95 kB / 0.7356 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.829e-05/0.2347, allocations: 35.97 kB / 0.7356 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.2348, allocations: 12.19 kB / 0.7356 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003729/0.2351, allocations: 318.9 kB / 0.7359 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.136e-06/0.2351, allocations: 0 / 0.7359 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007063/0.2359, allocations: 167.9 kB / 0.7361 GB, free: 6.645 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,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.0001828/0.236, allocations: 115.2 kB / 0.7362 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001823/0.2379, allocations: 1.055 MB / 0.7372 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2379, allocations: 0 / 0.7372 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.2389, allocations: 0.6799 MB / 0.7379 GB, free: 4.707 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000926/0.2399, allocations: 188.6 kB / 0.7381 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.2421, allocations: 1.508 MB / 0.7395 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/0.2428, allocations: 0.9455 MB / 0.7405 GB, free: 2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003875/0.2432, allocations: 117 kB / 0.7406 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.2433, allocations: 35.44 kB / 0.7406 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of SimCode: time 8.02e-07/0.2433, allocations: 3.938 kB / 0.7406 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of Templates: time 0.0174/0.2607, allocations: 8.904 MB / 0.7493 GB, free: 9.066 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)