Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009511/0.0009512, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.006328/0.006328, allocations: 170.4 kB / 16.27 MB, free: 6.66 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.36/1.36, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 263.1 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9311/0.9311, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004919/0.0004919, allocations: 23.48 kB / 0.5988 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1512, allocations: 88.54 MB / 0.6852 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02588/0.1771, allocations: 25.72 MB / 0.7104 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01199/0.1891, allocations: 7.991 MB / 0.7182 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.1907, allocations: 103.4 kB / 0.7183 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.1918, allocations: 0.5272 MB / 0.7188 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002989/0.1948, allocations: 1.482 MB / 0.7202 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002822/0.1977, allocations: 1.398 MB / 0.7216 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007864/0.2056, allocations: 8.697 MB / 0.7301 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01232/0.2179, allocations: 9.169 MB / 0.739 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/0.2214, allocations: 1.859 MB / 0.7409 GB, free: 5.852 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004346/0.2258, allocations: 2.464 MB / 0.7433 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005542/0.2264, allocations: 212 kB / 0.7435 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002381/0.2288, allocations: 1.205 MB / 0.7446 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001782/0.2305, allocations: 1.66 MB / 0.7463 GB, free: 308 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.2326, allocations: 1.972 MB / 0.7482 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007054/0.2397, allocations: 7.674 MB / 0.7557 GB, free: 6.613 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2397, allocations: 4 kB / 0.7557 GB, free: 6.609 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2397, allocations: 0 / 0.7557 GB, free: 6.609 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001308/0.2399, allocations: 0 / 0.7557 GB, free: 6.609 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.006089/0.246, allocations: 3.417 MB / 0.759 GB, free: 3.129 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.246, allocations: 8.031 kB / 0.759 GB, free: 3.121 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007327/0.2468, allocations: 0.5382 MB / 0.7596 GB, free: 2.574 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00391/0.2507, allocations: 0.8078 MB / 0.7603 GB, free: 1.762 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3112/0.5619, allocations: 2.416 MB / 0.7627 GB, free: 40.33 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.5622, allocations: 272.4 kB / 0.763 GB, free: 40.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/0.5634, allocations: 375.6 kB / 0.7633 GB, free: 40.32 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01209/0.5755, allocations: 5.988 MB / 0.7692 GB, free: 39.57 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/0.5757, allocations: 25.83 kB / 0.7692 GB, free: 39.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004227/0.5761, allocations: 154.8 kB / 0.7693 GB, free: 39.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006294/0.5768, allocations: 282.6 kB / 0.7696 GB, free: 39.56 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008417/0.5852, allocations: 4.526 MB / 0.774 GB, free: 39.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02557/0.6108, allocations: 27.69 MB / 0.8011 GB, free: 19.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.6124, allocations: 1.122 MB / 0.8022 GB, free: 19.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.6137, allocations: 1.01 MB / 0.8032 GB, free: 19.14 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 6.631e-05/0.6138, allocations: 11.56 kB / 0.8032 GB, free: 19.14 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.6138, allocations: 56.2 kB / 0.8032 GB, free: 19.08 MB / 0.545 GB Notification: Performance of pre-optimization done (n=110): time 2.986e-06/0.6138, allocations: 0 / 0.8032 GB, free: 19.08 MB / 0.545 GB Notification: Performance of matching and sorting (n=131): time 0.02004/0.6339, allocations: 9.67 MB / 0.8127 GB, free: 14.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.6339, allocations: 69.62 kB / 0.8127 GB, free: 14.08 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.6355, allocations: 1.491 MB / 0.8142 GB, free: 13.28 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.6357, allocations: 52.14 kB / 0.8142 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000688/0.6364, allocations: 1.666 MB / 0.8159 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.6367, allocations: 477.3 kB / 0.8163 GB, free: 11.36 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.6369, allocations: 140.8 kB / 0.8165 GB, free: 11.27 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.64e-05/0.6369, allocations: 305.1 kB / 0.8167 GB, free: 10.97 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.638, allocations: 0.9137 MB / 0.8176 GB, free: 10.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/0.6392, allocations: 1.465 MB / 0.8191 GB, free: 9.305 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.6417, allocations: 2.547 MB / 0.8216 GB, free: 7.574 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.6418, allocations: 11.53 kB / 0.8216 GB, free: 7.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004759/0.6465, allocations: 3.279 MB / 0.8248 GB, free: 5.906 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.6466, allocations: 14.75 kB / 0.8248 GB, free: 5.906 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.6466, allocations: 19.86 kB / 0.8248 GB, free: 5.902 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.6486, allocations: 0.7416 MB / 0.8255 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/0.6499, allocations: 382.4 kB / 0.8259 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/0.6633, allocations: 15.78 MB / 0.8413 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.6649, allocations: 100.1 kB / 0.8414 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.6651, allocations: 76.84 kB / 0.8415 GB, free: 5.285 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.002132/0.6672, allocations: 1.321 MB / 0.8428 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.6676, allocations: 201.7 kB / 0.8429 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.6725, allocations: 2.782 MB / 0.8457 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.6725, allocations: 16 kB / 0.8457 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.6725, allocations: 4 kB / 0.8457 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.333e-05/0.6726, allocations: 11.97 kB / 0.8457 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009813/0.6824, allocations: 6.214 MB / 0.8518 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.6824, allocations: 4 kB / 0.8518 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.6835, allocations: 237 kB / 0.852 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/0.6855, allocations: 0.6705 MB / 0.8526 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.124e-05/0.6856, allocations: 39.92 kB / 0.8527 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/0.6995, allocations: 15.51 MB / 0.8678 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.6995, allocations: 7.375 kB / 0.8678 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005995/0.7055, allocations: 4.008 MB / 0.8718 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008077/0.7063, allocations: 466.5 kB / 0.8722 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.7065, allocations: 28 kB / 0.8722 GB, free: 4.473 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008484/0.7074, allocations: 83.89 kB / 0.8723 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003009/0.7077, allocations: 116.3 kB / 0.8724 GB, free: 4.285 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.611e-05/0.7078, allocations: 46.42 kB / 0.8725 GB, free: 4.242 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001317/0.7091, allocations: 0.9942 MB / 0.8734 GB, free: 3.258 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7091, allocations: 4 kB / 0.8734 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002167/0.7113, allocations: 0.6836 MB / 0.8741 GB, free: 2.57 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.006336/0.7176, allocations: 4.599 MB / 0.8786 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.005342/0.723, allocations: 3.505 MB / 0.882 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.723, allocations: 2.297 kB / 0.882 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003181/0.7262, allocations: 2.289 MB / 0.8843 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/0.7302, allocations: 0.6291 MB / 0.8849 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03762/0.7679, allocations: 24.34 MB / 0.9086 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/0.7709, allocations: 2.667 MB / 0.9112 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001647/0.7726, allocations: 485.4 kB / 0.9117 GB, free: 10.39 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.774, allocations: 1.276 MB / 0.913 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of SimCode: time 6.11e-07/0.774, allocations: 0 / 0.913 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.711/1.485, allocations: 54.24 MB / 0.9659 GB, free: 3.719 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000256/1.485, allocations: 260.2 kB / 0.9662 GB, free: 3.465 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.905/4.39, allocations: 0 / 0.9662 GB, free: 3.465 MB / 0.6856 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1)