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.001267/0.001267, 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.001118/0.001118, allocations: 192.5 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.274/1.274, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 283 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9414/0.9414, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002332/0.002332, allocations: 102.5 kB / 0.5952 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1697, allocations: 86.98 MB / 0.6802 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006967/0.1767, allocations: 5.448 MB / 0.6855 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004041/0.1808, allocations: 2.63 MB / 0.6881 GB, free: 8.574 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.1811, allocations: 19.88 kB / 0.6881 GB, free: 8.555 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1828, allocations: 0.6801 MB / 0.6888 GB, free: 7.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008358/0.1837, allocations: 409.7 kB / 0.6892 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008628/0.1845, allocations: 387.1 kB / 0.6895 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000868/0.1854, allocations: 0.9514 MB / 0.6904 GB, free: 6.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005902/0.186, allocations: 466.5 kB / 0.6909 GB, free: 5.684 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003867/0.1864, allocations: 370.6 kB / 0.6912 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000448/0.1869, allocations: 398.4 kB / 0.6916 GB, free: 4.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.43e-05/0.1869, allocations: 48 kB / 0.6917 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006062/0.1876, allocations: 367.2 kB / 0.692 GB, free: 4.523 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.1878, allocations: 251.3 kB / 0.6923 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.1881, allocations: 346.2 kB / 0.6926 GB, free: 3.938 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009069/0.189, allocations: 0.9656 MB / 0.6935 GB, free: 2.969 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.189, allocations: 4 kB / 0.6935 GB, free: 2.965 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1891, allocations: 0 / 0.6935 GB, free: 2.965 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1891, allocations: 0 / 0.6935 GB, free: 2.965 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001447/0.1905, allocations: 0.9699 MB / 0.6945 GB, free: 1.941 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1906, allocations: 8.031 kB / 0.6945 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.1919, allocations: 191.8 kB / 0.6947 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006338/0.1926, allocations: 490.5 kB / 0.6951 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.1926, allocations: 33.38 kB / 0.6952 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.1928, allocations: 56.45 kB / 0.6952 GB, free: 1.145 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.1938, allocations: 0.8402 MB / 0.6961 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1939, allocations: 7.938 kB / 0.6961 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.57e-05/0.1939, allocations: 24 kB / 0.6961 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.1941, allocations: 68.94 kB / 0.6961 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008378/0.195, allocations: 0.5696 MB / 0.6967 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004047/0.199, allocations: 4.592 MB / 0.7012 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004374/0.1995, allocations: 291.3 kB / 0.7015 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.1998, allocations: 225.3 kB / 0.7017 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1998, allocations: 4.281 kB / 0.7017 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.1998, allocations: 42.78 kB / 0.7017 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.1998, allocations: 0 / 0.7017 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.00543/0.2053, allocations: 2.62 MB / 0.7043 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.2053, allocations: 63.34 kB / 0.7043 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004721/0.2058, allocations: 461.8 kB / 0.7048 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.2059, allocations: 37.7 kB / 0.7048 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.2061, allocations: 343.6 kB / 0.7051 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.2062, allocations: 138 kB / 0.7053 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.2063, allocations: 106.1 kB / 0.7054 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2065, allocations: 358.8 kB / 0.7057 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.2068, allocations: 241 kB / 0.706 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/0.2073, allocations: 402.5 kB / 0.7063 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008167/0.2081, allocations: 0.6817 MB / 0.707 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2081, allocations: 4 kB / 0.707 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001661/0.2098, allocations: 0.9171 MB / 0.7079 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.2098, allocations: 8.656 kB / 0.7079 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2098, allocations: 4 kB / 0.7079 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008062/0.2106, allocations: 230.4 kB / 0.7081 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.2112, allocations: 115.8 kB / 0.7082 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004958/0.2161, allocations: 5.332 MB / 0.7135 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.2166, allocations: 35.97 kB / 0.7135 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.2167, allocations: 24 kB / 0.7135 GB, free: 13.2 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.0002966/0.217, allocations: 226.3 kB / 0.7137 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.893e-05/0.2171, allocations: 59.28 kB / 0.7138 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.2185, allocations: 0.7736 MB / 0.7145 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2185, allocations: 4.141 kB / 0.7145 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2185, allocations: 8 kB / 0.7145 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2186, allocations: 7.969 kB / 0.7146 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.2208, allocations: 1.494 MB / 0.716 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2208, allocations: 0 / 0.716 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/0.2212, allocations: 67.89 kB / 0.7161 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006484/0.2219, allocations: 210.6 kB / 0.7163 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.2219, allocations: 15.94 kB / 0.7163 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004606/0.2265, allocations: 5.263 MB / 0.7214 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2265, allocations: 8.047 kB / 0.7214 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.2283, allocations: 1.128 MB / 0.7225 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.2285, allocations: 172.4 kB / 0.7227 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-05/0.2286, allocations: 11.94 kB / 0.7227 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.2289, allocations: 28.03 kB / 0.7227 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.229, allocations: 35.95 kB / 0.7228 GB, free: 3.098 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.229, allocations: 8 kB / 0.7228 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003348/0.2294, allocations: 318.8 kB / 0.7231 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2294, allocations: 0 / 0.7231 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006401/0.23, allocations: 168 kB / 0.7233 GB, free: 2.617 MB / 0.5137 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.0001437/0.2302, allocations: 115.2 kB / 0.7234 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001624/0.2318, allocations: 1.063 MB / 0.7244 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2318, allocations: 128 / 0.7244 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009125/0.2328, allocations: 0.6851 MB / 0.7251 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008426/0.2336, allocations: 188.5 kB / 0.7252 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.2355, allocations: 1.264 MB / 0.7265 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.236, allocations: 0.9533 MB / 0.7274 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003467/0.2364, allocations: 113 kB / 0.7275 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.363e-05/0.2365, allocations: 39.42 kB / 0.7276 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of SimCode: time 5.51e-07/0.2365, allocations: 4 kB / 0.7276 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of Templates: time 0.01524/0.2517, allocations: 8.844 MB / 0.7362 GB, free: 5.32 MB / 0.5294 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)