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.001483/0.001483, 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.001842/0.001842, allocations: 191 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002101/0.002101, allocations: 294.8 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9697/0.9697, allocations: 169.2 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 105.3 kB / 0.5954 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1668, allocations: 86.97 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02825/0.1951, allocations: 26.64 MB / 0.7063 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01263/0.2077, allocations: 8.081 MB / 0.7142 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002347/0.2101, allocations: 111.4 kB / 0.7143 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.006771/0.2169, allocations: 2.754 MB / 0.717 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004126/0.2211, allocations: 1.593 MB / 0.7186 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004121/0.2252, allocations: 1.68 MB / 0.7202 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006454/0.2317, allocations: 6.131 MB / 0.7262 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009127/0.2408, allocations: 7.425 MB / 0.7334 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003673/0.2445, allocations: 2.559 MB / 0.7359 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003938/0.2485, allocations: 2.835 MB / 0.7387 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.2497, allocations: 0.5078 MB / 0.7392 GB, free: 4.012 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.2527, allocations: 1.279 MB / 0.7404 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002582/0.2553, allocations: 2.054 MB / 0.7425 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003958/0.2593, allocations: 2.381 MB / 0.7448 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.008059/0.2674, allocations: 7.997 MB / 0.7526 GB, free: 6.262 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2674, allocations: 0 / 0.7526 GB, free: 6.262 MB / 0.545 GB Notification: Performance of FrontEnd: time 4.157e-06/0.2674, allocations: 4 kB / 0.7526 GB, free: 6.258 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002079/0.2676, allocations: 0 / 0.7526 GB, free: 6.258 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.008008/0.2756, allocations: 4.228 MB / 0.7567 GB, free: 1.965 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2757, allocations: 12.03 kB / 0.7567 GB, free: 1.953 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006622/0.2764, allocations: 0.5499 MB / 0.7573 GB, free: 1.395 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004063/0.2804, allocations: 0.8 MB / 0.758 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004368/0.2848, allocations: 2.417 MB / 0.7604 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001714/0.285, allocations: 271.6 kB / 0.7607 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006592/0.2857, allocations: 388.3 kB / 0.761 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009761/0.2954, allocations: 5.98 MB / 0.7669 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001312/0.2956, allocations: 23.77 kB / 0.7669 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004765/0.2961, allocations: 160 kB / 0.7671 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005806/0.2967, allocations: 278.9 kB / 0.7673 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007618/0.3043, allocations: 4.524 MB / 0.7717 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2621/0.5664, allocations: 27.66 MB / 0.7987 GB, free: 65.22 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.5678, allocations: 1.124 MB / 0.7998 GB, free: 64.79 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.5689, allocations: 1.019 MB / 0.8008 GB, free: 64.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.014e-05/0.569, allocations: 12.19 kB / 0.8008 GB, free: 64.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.569, allocations: 42.06 kB / 0.8009 GB, free: 64.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=110): time 2.615e-06/0.569, allocations: 5.844 kB / 0.8009 GB, free: 64.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=131): time 0.0195/0.5886, allocations: 9.657 MB / 0.8103 GB, free: 60.11 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.5886, allocations: 71.58 kB / 0.8104 GB, free: 60.04 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.5907, allocations: 1.496 MB / 0.8119 GB, free: 59.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.5908, allocations: 51.42 kB / 0.8119 GB, free: 59.36 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007971/0.5916, allocations: 1.666 MB / 0.8135 GB, free: 57.89 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003137/0.5919, allocations: 469.3 kB / 0.814 GB, free: 57.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000494/0.5924, allocations: 329.2 kB / 0.8143 GB, free: 57.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.5925, allocations: 301.7 kB / 0.8146 GB, free: 57.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.5937, allocations: 0.9174 MB / 0.8155 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.5952, allocations: 1.467 MB / 0.8169 GB, free: 55.34 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/0.5981, allocations: 2.549 MB / 0.8194 GB, free: 53.54 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.5982, allocations: 5.219 kB / 0.8194 GB, free: 53.54 MB / 0.5606 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005401/0.6036, allocations: 3.285 MB / 0.8226 GB, free: 51.75 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.6036, allocations: 13.78 kB / 0.8226 GB, free: 51.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.6037, allocations: 16.5 kB / 0.8226 GB, free: 51.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/0.6057, allocations: 0.7441 MB / 0.8234 GB, free: 51.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.6072, allocations: 383.2 kB / 0.8237 GB, free: 51.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.6186, allocations: 17.06 MB / 0.8404 GB, free: 35.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.6202, allocations: 99 kB / 0.8405 GB, free: 35.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.6203, allocations: 78.8 kB / 0.8406 GB, free: 35.45 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.001671/0.6219, allocations: 1.319 MB / 0.8418 GB, free: 34.62 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.6222, allocations: 203 kB / 0.842 GB, free: 34.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004167/0.6264, allocations: 2.78 MB / 0.8448 GB, free: 32.86 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.6264, allocations: 15 kB / 0.8448 GB, free: 32.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6264, allocations: 7.625 kB / 0.8448 GB, free: 32.86 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.6265, allocations: 3.984 kB / 0.8448 GB, free: 32.85 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007946/0.6344, allocations: 6.221 MB / 0.8509 GB, free: 27.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.6344, allocations: 4 kB / 0.8509 GB, free: 27.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.6355, allocations: 231 kB / 0.8511 GB, free: 27.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/0.6372, allocations: 0.6832 MB / 0.8517 GB, free: 27.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.518e-05/0.6373, allocations: 32 kB / 0.8518 GB, free: 26.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/0.6479, allocations: 16.79 MB / 0.8682 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6479, allocations: 11.94 kB / 0.8682 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004845/0.6527, allocations: 4.01 MB / 0.8721 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006651/0.6534, allocations: 454.5 kB / 0.8725 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.6536, allocations: 43.98 kB / 0.8726 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008544/0.6545, allocations: 79.89 kB / 0.8727 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.6548, allocations: 104.8 kB / 0.8728 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.362e-05/0.6548, allocations: 47.98 kB / 0.8728 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001001/0.6558, allocations: 0.9942 MB / 0.8738 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6558, allocations: 0 / 0.8738 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001817/0.6577, allocations: 0.6836 MB / 0.8744 GB, free: 2.402 MB / 0.5606 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.005374/0.6631, allocations: 4.608 MB / 0.8789 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006053/0.6691, allocations: 4.104 MB / 0.8829 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6692, allocations: 4 kB / 0.883 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002993/0.6721, allocations: 2.295 MB / 0.8852 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002783/0.6749, allocations: 0.672 MB / 0.8858 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.7058, allocations: 22.72 MB / 0.908 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003439/0.7093, allocations: 2.668 MB / 0.9106 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001774/0.7111, allocations: 493.4 kB / 0.9111 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001587/0.7127, allocations: 1.28 MB / 0.9124 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of SimCode: time 6.71e-07/0.7127, allocations: 0 / 0.9124 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09985/0.8125, allocations: 56.29 MB / 0.9673 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.882/10.69, allocations: 7.094 kB / 0.9673 GB, free: 2.121 MB / 0.6544 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1)