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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.001053/0.001053, allocations: 108 kB / 15.61 MB, free: 152 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.001081/0.001081, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002022/0.002021, allocations: 278.8 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9119/0.9119, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003118/0.003118, allocations: 98.41 kB / 0.5954 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1648, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007526/0.1723, allocations: 5.516 MB / 0.6857 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004932/0.1773, allocations: 2.65 MB / 0.6883 GB, free: 8.402 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006281/0.178, allocations: 23.88 kB / 0.6883 GB, free: 8.379 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.1799, allocations: 0.6792 MB / 0.689 GB, free: 7.699 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1811, allocations: 405.8 kB / 0.6894 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.1823, allocations: 413.8 kB / 0.6897 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.1835, allocations: 0.9592 MB / 0.6907 GB, free: 5.938 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007032/0.1842, allocations: 474.5 kB / 0.6911 GB, free: 5.473 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005947/0.1848, allocations: 370.6 kB / 0.6915 GB, free: 5.109 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.1854, allocations: 406.4 kB / 0.6919 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.1855, allocations: 48 kB / 0.6919 GB, free: 4.664 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007138/0.1862, allocations: 363.2 kB / 0.6923 GB, free: 4.309 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.1865, allocations: 243.3 kB / 0.6925 GB, free: 4.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004728/0.187, allocations: 346.2 kB / 0.6928 GB, free: 3.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.1883, allocations: 0.9656 MB / 0.6938 GB, free: 2.762 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1883, allocations: 4 kB / 0.6938 GB, free: 2.758 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1883, allocations: 4 kB / 0.6938 GB, free: 2.754 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.1884, allocations: 3.938 kB / 0.6938 GB, free: 2.75 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.002131/0.1905, allocations: 0.9698 MB / 0.6947 GB, free: 1.727 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.1906, allocations: 15.97 kB / 0.6947 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.1907, allocations: 110.7 kB / 0.6949 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/0.1922, allocations: 187.9 kB / 0.695 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000727/0.193, allocations: 494.4 kB / 0.6955 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.193, allocations: 33.38 kB / 0.6955 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.1932, allocations: 60.44 kB / 0.6956 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.1943, allocations: 0.8361 MB / 0.6964 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.1943, allocations: 4 kB / 0.6964 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.1944, allocations: 24 kB / 0.6964 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.1946, allocations: 60.95 kB / 0.6965 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008701/0.1954, allocations: 0.5813 MB / 0.6971 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.1996, allocations: 4.589 MB / 0.7015 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.2001, allocations: 291.3 kB / 0.7018 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.2004, allocations: 225.3 kB / 0.702 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.2004, allocations: 12.2 kB / 0.702 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.2005, allocations: 34.84 kB / 0.7021 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.2005, allocations: 0 / 0.7021 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005261/0.2058, allocations: 2.631 MB / 0.7046 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2058, allocations: 55.41 kB / 0.7047 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.2063, allocations: 466 kB / 0.7051 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.2063, allocations: 29.7 kB / 0.7052 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.2065, allocations: 347.6 kB / 0.7055 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2066, allocations: 145.9 kB / 0.7056 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.2068, allocations: 102.2 kB / 0.7057 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2069, allocations: 362.8 kB / 0.7061 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.2073, allocations: 237 kB / 0.7063 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004399/0.2077, allocations: 410.3 kB / 0.7067 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008112/0.2085, allocations: 0.6818 MB / 0.7074 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.2086, allocations: 0 / 0.7074 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001566/0.2101, allocations: 0.9171 MB / 0.7083 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2102, allocations: 8 kB / 0.7083 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2102, allocations: 4.656 kB / 0.7083 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000752/0.2109, allocations: 230.4 kB / 0.7085 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.2114, allocations: 111.8 kB / 0.7086 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004705/0.2161, allocations: 5.344 MB / 0.7138 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004228/0.2166, allocations: 27.98 kB / 0.7139 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.19e-05/0.2166, allocations: 27.98 kB / 0.7139 GB, free: 12.85 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.0002713/0.2169, allocations: 218.4 kB / 0.7141 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-05/0.217, allocations: 71.12 kB / 0.7142 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.2184, allocations: 0.7736 MB / 0.7149 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.2184, allocations: 4 kB / 0.7149 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.2184, allocations: 4 kB / 0.7149 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2185, allocations: 3.984 kB / 0.7149 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.2208, allocations: 1.498 MB / 0.7164 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.2208, allocations: 4 kB / 0.7164 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.2212, allocations: 67.89 kB / 0.7165 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.2218, allocations: 210.6 kB / 0.7167 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.2219, allocations: 8 kB / 0.7167 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/0.2263, allocations: 5.274 MB / 0.7218 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2263, allocations: 0 / 0.7218 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.228, allocations: 1.132 MB / 0.7229 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.2282, allocations: 176.2 kB / 0.7231 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.04e-05/0.2283, allocations: 12 kB / 0.7231 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2287, allocations: 23.97 kB / 0.7231 GB, free: 2.777 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.199e-05/0.2288, allocations: 36.16 kB / 0.7232 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.2288, allocations: 16 kB / 0.7232 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000349/0.2291, allocations: 314.9 kB / 0.7235 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2291, allocations: 0 / 0.7235 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006534/0.2298, allocations: 168 kB / 0.7236 GB, free: 2.258 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.001978/0.2318, allocations: 1.699 MB / 0.7253 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001647/0.2334, allocations: 1.064 MB / 0.7263 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2335, allocations: 0 / 0.7263 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009171/0.2344, allocations: 0.676 MB / 0.727 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008623/0.2353, allocations: 188.5 kB / 0.7272 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007127/0.2424, allocations: 5.715 MB / 0.7327 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.2429, allocations: 0.9455 MB / 0.7337 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003602/0.2433, allocations: 113 kB / 0.7338 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.2435, allocations: 218.7 kB / 0.734 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of SimCode: time 4.31e-07/0.2435, allocations: 0 / 0.734 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04205/0.2856, allocations: 14.05 MB / 0.7477 GB, free: 9.457 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.088/9.374, allocations: 9.516 kB / 0.7477 GB, free: 9.453 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)