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.001374/0.001374, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.474/1.474, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002526/0.002526, allocations: 282.6 kB / 290.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.073/1.073, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002828/0.002828, allocations: 93.05 kB / 0.6064 GB, free: 24.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1582, allocations: 89.15 MB / 0.6935 GB, free: 4.309 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007597/0.1659, allocations: 5.456 MB / 0.6988 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004469/0.1704, allocations: 2.629 MB / 0.7014 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.1707, allocations: 19.88 kB / 0.7014 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.1725, allocations: 0.6818 MB / 0.7021 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009128/0.1735, allocations: 409.7 kB / 0.7025 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000924/0.1744, allocations: 392.9 kB / 0.7028 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001018/0.1754, allocations: 0.9436 MB / 0.7038 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006541/0.1761, allocations: 462.8 kB / 0.7042 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.1766, allocations: 370.6 kB / 0.7046 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.1771, allocations: 410.4 kB / 0.7049 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.156e-05/0.1772, allocations: 51.94 kB / 0.705 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006577/0.1779, allocations: 359.3 kB / 0.7053 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002636/0.1782, allocations: 251.3 kB / 0.7056 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003535/0.1785, allocations: 354.2 kB / 0.7059 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.1796, allocations: 0.9578 MB / 0.7069 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1796, allocations: 3.938 kB / 0.7069 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.243e-06/0.1796, allocations: 0 / 0.7069 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.1796, allocations: 0 / 0.7069 GB, free: 6.602 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.00161/0.1813, allocations: 0.9738 MB / 0.7078 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1813, allocations: 12.03 kB / 0.7078 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001377/0.1827, allocations: 191.8 kB / 0.708 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006919/0.1834, allocations: 486.4 kB / 0.7085 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.1834, allocations: 41.36 kB / 0.7085 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.1836, allocations: 48.56 kB / 0.7086 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.1848, allocations: 0.8357 MB / 0.7094 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1848, allocations: 0 / 0.7094 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.435e-05/0.1849, allocations: 27.98 kB / 0.7094 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002023/0.1851, allocations: 64.94 kB / 0.7095 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009137/0.1861, allocations: 0.5774 MB / 0.71 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004701/0.1908, allocations: 4.581 MB / 0.7145 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004774/0.1913, allocations: 291.3 kB / 0.7148 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.1916, allocations: 225.3 kB / 0.715 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1916, allocations: 4.281 kB / 0.715 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.1917, allocations: 38.78 kB / 0.715 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 1.754e-06/0.1917, allocations: 0 / 0.715 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.005847/0.1975, allocations: 2.631 MB / 0.7176 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.1976, allocations: 59.34 kB / 0.7177 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005185/0.1981, allocations: 457.9 kB / 0.7181 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.1982, allocations: 33.7 kB / 0.7181 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.1984, allocations: 343.6 kB / 0.7185 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.1986, allocations: 145.9 kB / 0.7186 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.1987, allocations: 102.2 kB / 0.7187 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1989, allocations: 358.8 kB / 0.719 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.1993, allocations: 241 kB / 0.7193 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.1998, allocations: 405.3 kB / 0.7196 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009448/0.2007, allocations: 0.6778 MB / 0.7203 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.2008, allocations: 8 kB / 0.7203 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001731/0.2025, allocations: 0.9207 MB / 0.7212 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.2025, allocations: 8 kB / 0.7212 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.2025, allocations: 8.641 kB / 0.7212 GB, free: 7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/0.2034, allocations: 238.3 kB / 0.7215 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.2039, allocations: 111.8 kB / 0.7216 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00575/0.2096, allocations: 5.343 MB / 0.7268 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.2102, allocations: 27.98 kB / 0.7268 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-05/0.2102, allocations: 27.98 kB / 0.7268 GB, free: 0.8281 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.0003255/0.2106, allocations: 218.8 kB / 0.727 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.2107, allocations: 63.22 kB / 0.7271 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.2122, allocations: 0.7812 MB / 0.7279 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2123, allocations: 4 kB / 0.7279 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2123, allocations: 0 / 0.7279 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.2123, allocations: 7.984 kB / 0.7279 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002543/0.2148, allocations: 1.494 MB / 0.7293 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.2149, allocations: 4 kB / 0.7293 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.2152, allocations: 63.89 kB / 0.7294 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006988/0.216, allocations: 206.6 kB / 0.7296 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.492e-05/0.216, allocations: 15.98 kB / 0.7296 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005419/0.2214, allocations: 5.269 MB / 0.7348 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.2215, allocations: 4.031 kB / 0.7348 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.2234, allocations: 1.135 MB / 0.7359 GB, free: 6.98 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.2237, allocations: 176.4 kB / 0.736 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.643e-05/0.2238, allocations: 11.94 kB / 0.7361 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.2241, allocations: 23.97 kB / 0.7361 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.612e-05/0.2242, allocations: 40.02 kB / 0.7361 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.2242, allocations: 12 kB / 0.7361 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003872/0.2246, allocations: 306.9 kB / 0.7364 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2246, allocations: 3.938 kB / 0.7364 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007404/0.2254, allocations: 168 kB / 0.7366 GB, free: 6.238 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.0001696/0.2256, allocations: 119.2 kB / 0.7367 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00187/0.2274, allocations: 1.055 MB / 0.7377 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.2275, allocations: 0 / 0.7377 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.2285, allocations: 0.6838 MB / 0.7384 GB, free: 4.293 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009518/0.2295, allocations: 180.2 kB / 0.7386 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.2318, allocations: 1.273 MB / 0.7398 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006622/0.2325, allocations: 0.9494 MB / 0.7407 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004104/0.2329, allocations: 113 kB / 0.7408 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.233, allocations: 35.44 kB / 0.7409 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of SimCode: time 3.41e-07/0.233, allocations: 0 / 0.7409 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of Templates: time 0.01772/0.2507, allocations: 8.852 MB / 0.7495 GB, free: 8.953 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)