Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.001039/0.001039, allocations: 103 kB / 16.36 MB, free: 6.336 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.001081/0.001081, allocations: 198.3 kB / 17.3 MB, free: 5.883 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 286.2 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9067/0.9067, allocations: 169.2 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 95.55 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1677, allocations: 86.98 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006782/0.1745, allocations: 5.529 MB / 0.687 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3047/0.4792, allocations: 2.635 MB / 0.6896 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006326/0.4799, allocations: 23.22 kB / 0.6896 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001903/0.4818, allocations: 0.6747 MB / 0.6903 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001195/0.483, allocations: 411.9 kB / 0.6907 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.4841, allocations: 418.1 kB / 0.691 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.4852, allocations: 0.9587 MB / 0.692 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006525/0.4858, allocations: 458.5 kB / 0.6924 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004644/0.4863, allocations: 372.7 kB / 0.6928 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005102/0.4868, allocations: 406.5 kB / 0.6932 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.194e-05/0.4869, allocations: 48.03 kB / 0.6932 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006837/0.4876, allocations: 361 kB / 0.6936 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.4879, allocations: 250.6 kB / 0.6938 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003287/0.4882, allocations: 346.8 kB / 0.6941 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.4894, allocations: 0.9747 MB / 0.6951 GB, free: 12.1 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.4894, allocations: 5.062 kB / 0.6951 GB, free: 12.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4894, allocations: 3.938 kB / 0.6951 GB, free: 12.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.4894, allocations: 0 / 0.6951 GB, free: 12.09 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.001464/0.4909, allocations: 0.9741 MB / 0.696 GB, free: 11.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.4909, allocations: 10.52 kB / 0.696 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001305/0.4923, allocations: 202 kB / 0.6962 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008393/0.4931, allocations: 0.5223 MB / 0.6968 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.4932, allocations: 37.09 kB / 0.6968 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.4933, allocations: 56.16 kB / 0.6968 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.4945, allocations: 0.8297 MB / 0.6976 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.4946, allocations: 14.41 kB / 0.6977 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.972e-05/0.4946, allocations: 21.83 kB / 0.6977 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001965/0.4948, allocations: 64.67 kB / 0.6977 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009633/0.4958, allocations: 0.5695 MB / 0.6983 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.4997, allocations: 4.571 MB / 0.7028 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.5002, allocations: 303.2 kB / 0.7031 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.5006, allocations: 226.4 kB / 0.7033 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.5006, allocations: 3.922 kB / 0.7033 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.5006, allocations: 37.25 kB / 0.7033 GB, free: 6.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.5006, allocations: 4 kB / 0.7033 GB, free: 6.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=40): time 0.005395/0.506, allocations: 2.626 MB / 0.7059 GB, free: 4.801 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.5061, allocations: 56.02 kB / 0.7059 GB, free: 4.738 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005145/0.5066, allocations: 465.7 kB / 0.7064 GB, free: 4.512 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.5066, allocations: 31.8 kB / 0.7064 GB, free: 4.477 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5068, allocations: 340.5 kB / 0.7067 GB, free: 4.203 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.153e-05/0.5069, allocations: 141 kB / 0.7069 GB, free: 4.098 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.5071, allocations: 111.4 kB / 0.707 GB, free: 4.035 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.5072, allocations: 368.2 kB / 0.7073 GB, free: 3.695 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.5076, allocations: 238.5 kB / 0.7076 GB, free: 3.613 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.508, allocations: 412.9 kB / 0.7079 GB, free: 3.316 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000883/0.5089, allocations: 0.6739 MB / 0.7086 GB, free: 2.883 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5089, allocations: 1.719 kB / 0.7086 GB, free: 2.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001782/0.5107, allocations: 0.9208 MB / 0.7095 GB, free: 2.496 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.5108, allocations: 6.875 kB / 0.7095 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.5108, allocations: 7.062 kB / 0.7095 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007705/0.5116, allocations: 221.6 kB / 0.7097 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.5121, allocations: 115.1 kB / 0.7098 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004942/0.517, allocations: 5.339 MB / 0.7151 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.5176, allocations: 30.58 kB / 0.7151 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.5176, allocations: 24.31 kB / 0.7151 GB, free: 13.75 MB / 0.4981 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.000383/0.518, allocations: 230.2 kB / 0.7153 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.5181, allocations: 60.81 kB / 0.7154 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.5196, allocations: 0.779 MB / 0.7161 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.5196, allocations: 3.5 kB / 0.7161 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5197, allocations: 2 kB / 0.7161 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.5197, allocations: 4.281 kB / 0.7162 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.5223, allocations: 1.495 MB / 0.7176 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.5223, allocations: 3.531 kB / 0.7176 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.5227, allocations: 71.08 kB / 0.7177 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006759/0.5234, allocations: 203.1 kB / 0.7179 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.5234, allocations: 13.69 kB / 0.7179 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005133/0.5285, allocations: 5.272 MB / 0.723 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5286, allocations: 2.469 kB / 0.723 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.5305, allocations: 1.129 MB / 0.7241 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003741/0.5309, allocations: 172.3 kB / 0.7243 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.606e-05/0.531, allocations: 14.23 kB / 0.7243 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.5313, allocations: 23.41 kB / 0.7243 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.5314, allocations: 39.2 kB / 0.7244 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.5315, allocations: 13.77 kB / 0.7244 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000456/0.5319, allocations: 319.8 kB / 0.7247 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.364e-06/0.5319, allocations: 0 / 0.7247 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008387/0.5328, allocations: 174.7 kB / 0.7249 GB, free: 6.789 MB / 0.4981 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.0001797/0.533, allocations: 114.6 kB / 0.725 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001841/0.5348, allocations: 1.019 MB / 0.726 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.5348, allocations: 1.25 kB / 0.726 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009651/0.5358, allocations: 0.6745 MB / 0.7266 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000895/0.5367, allocations: 186.8 kB / 0.7268 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.5389, allocations: 1.253 MB / 0.728 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007285/0.5397, allocations: 0.9585 MB / 0.729 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003547/0.54, allocations: 120.6 kB / 0.7291 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.5402, allocations: 36.25 kB / 0.7291 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of SimCode: time 8.02e-07/0.5402, allocations: 0 / 0.7291 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of Templates: time 0.01636/0.5565, allocations: 8.868 MB / 0.7378 GB, free: 24 kB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)