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.00121/0.00121, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001206/0.001206, allocations: 187 kB / 17.34 MB, free: 5.766 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002249/0.002249, allocations: 300.7 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9812/0.9812, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 95.84 kB / 0.6821 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4689/0.4708, allocations: 86.98 MB / 0.7671 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007024/0.4779, allocations: 5.529 MB / 0.7725 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004817/0.4827, allocations: 2.634 MB / 0.775 GB, free: 11.67 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005362/0.4833, allocations: 23.88 kB / 0.775 GB, free: 11.64 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.4853, allocations: 0.6801 MB / 0.7757 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001202/0.4866, allocations: 405.8 kB / 0.7761 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.4878, allocations: 411 kB / 0.7765 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001419/0.4892, allocations: 0.9591 MB / 0.7774 GB, free: 9.199 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008034/0.49, allocations: 470.5 kB / 0.7779 GB, free: 8.738 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007189/0.4907, allocations: 382.5 kB / 0.7782 GB, free: 8.363 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007212/0.4915, allocations: 402.5 kB / 0.7786 GB, free: 7.969 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.4916, allocations: 51.94 kB / 0.7787 GB, free: 7.918 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007643/0.4924, allocations: 359.3 kB / 0.779 GB, free: 7.566 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003274/0.4927, allocations: 251.3 kB / 0.7793 GB, free: 7.32 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000527/0.4933, allocations: 350.2 kB / 0.7796 GB, free: 6.977 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.4947, allocations: 0.9758 MB / 0.7805 GB, free: 6 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4947, allocations: 4 kB / 0.7805 GB, free: 5.996 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.854e-06/0.4947, allocations: 4 kB / 0.7806 GB, free: 5.992 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.563e-05/0.4947, allocations: 0 / 0.7806 GB, free: 5.992 MB / 0.545 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.001982/0.4967, allocations: 0.9698 MB / 0.7815 GB, free: 4.973 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.4968, allocations: 12.03 kB / 0.7815 GB, free: 4.961 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/0.4982, allocations: 191.9 kB / 0.7817 GB, free: 4.773 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009324/0.4992, allocations: 0.5217 MB / 0.7822 GB, free: 4.215 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.4992, allocations: 53.3 kB / 0.7823 GB, free: 4.16 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.4994, allocations: 56.53 kB / 0.7823 GB, free: 4.105 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.5007, allocations: 0.8303 MB / 0.7831 GB, free: 3.199 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.5007, allocations: 7.938 kB / 0.7831 GB, free: 3.191 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.5008, allocations: 23.98 kB / 0.7831 GB, free: 3.168 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001984/0.501, allocations: 64.95 kB / 0.7832 GB, free: 3.105 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009847/0.502, allocations: 0.5697 MB / 0.7838 GB, free: 2.531 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00445/0.5065, allocations: 4.577 MB / 0.7882 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.507, allocations: 299.2 kB / 0.7885 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.5073, allocations: 225.3 kB / 0.7887 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.5073, allocations: 4.281 kB / 0.7887 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.5073, allocations: 38.83 kB / 0.7888 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 1.834e-06/0.5074, allocations: 0 / 0.7888 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005691/0.5131, allocations: 2.623 MB / 0.7913 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.5131, allocations: 55.41 kB / 0.7914 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.5137, allocations: 466 kB / 0.7918 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.5137, allocations: 37.7 kB / 0.7919 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.514, allocations: 339.6 kB / 0.7922 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.5141, allocations: 145.9 kB / 0.7923 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.5143, allocations: 110.2 kB / 0.7924 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5145, allocations: 362.8 kB / 0.7928 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.5149, allocations: 237 kB / 0.793 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004944/0.5154, allocations: 406.4 kB / 0.7934 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009138/0.5163, allocations: 0.674 MB / 0.7941 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5163, allocations: 0 / 0.7941 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001684/0.518, allocations: 0.9212 MB / 0.795 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.5181, allocations: 14.75 kB / 0.795 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.5181, allocations: 8 kB / 0.795 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007762/0.5189, allocations: 226.8 kB / 0.7952 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.5194, allocations: 115.8 kB / 0.7953 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005264/0.5247, allocations: 5.332 MB / 0.8005 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.5251, allocations: 35.97 kB / 0.8005 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.5252, allocations: 27.97 kB / 0.8006 GB, free: 176 kB / 0.5606 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.0003429/0.5256, allocations: 225.7 kB / 0.8008 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.5257, allocations: 59.47 kB / 0.8008 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/0.5272, allocations: 0.7742 MB / 0.8016 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.5273, allocations: 4 kB / 0.8016 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.5273, allocations: 8 kB / 0.8016 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5273, allocations: 3.984 kB / 0.8016 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/0.5297, allocations: 1.501 MB / 0.8031 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.5298, allocations: 0 / 0.8031 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.5301, allocations: 63.89 kB / 0.8031 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006954/0.5309, allocations: 210.5 kB / 0.8033 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.5309, allocations: 8 kB / 0.8034 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005031/0.5359, allocations: 5.269 MB / 0.8085 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.536, allocations: 4.031 kB / 0.8085 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.5378, allocations: 1.136 MB / 0.8096 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.5381, allocations: 172.4 kB / 0.8098 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.309e-05/0.5382, allocations: 15.88 kB / 0.8098 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.5385, allocations: 27.97 kB / 0.8098 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.996e-05/0.5386, allocations: 35.89 kB / 0.8099 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.5387, allocations: 12 kB / 0.8099 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003561/0.539, allocations: 318.9 kB / 0.8102 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.539, allocations: 4.062 kB / 0.8102 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007109/0.5397, allocations: 168 kB / 0.8103 GB, free: 5.57 MB / 0.5762 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.0001709/0.5399, allocations: 107.8 kB / 0.8104 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00169/0.5416, allocations: 1.016 MB / 0.8114 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5416, allocations: 0 / 0.8114 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.5427, allocations: 0.6813 MB / 0.8121 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009522/0.5436, allocations: 192.1 kB / 0.8123 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.5459, allocations: 1.307 MB / 0.8136 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.5466, allocations: 0.9494 MB / 0.8145 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.5467, allocations: 39.44 kB / 0.8145 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/0.5467, allocations: 8 kB / 0.8145 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of Templates: time 0.01947/0.5662, allocations: 14.95 MB / 0.8291 GB, free: 2.215 MB / 0.5919 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)