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.001737/0.001737, 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.001943/0.001944, allocations: 193.3 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002558/0.002558, allocations: 286 kB / 290.7 MB, free: 1.844 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.063/1.063, allocations: 178.6 MB / 0.5073 GB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 102.2 kB / 0.6066 GB, free: 24.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1743, allocations: 89.15 MB / 0.6936 GB, free: 4.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.008411/0.1827, allocations: 5.525 MB / 0.699 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004791/0.1876, allocations: 2.653 MB / 0.7016 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004501/0.188, allocations: 27.81 kB / 0.7016 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.19, allocations: 0.6748 MB / 0.7023 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1911, allocations: 409.7 kB / 0.7027 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.1922, allocations: 417.4 kB / 0.7031 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001079/0.1933, allocations: 0.9514 MB / 0.704 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006765/0.194, allocations: 470.5 kB / 0.7044 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004785/0.1945, allocations: 374.6 kB / 0.7048 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005451/0.195, allocations: 406.4 kB / 0.7052 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.284e-05/0.1951, allocations: 48 kB / 0.7052 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007041/0.1958, allocations: 363.3 kB / 0.7056 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.1961, allocations: 243.3 kB / 0.7058 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000379/0.1965, allocations: 350.2 kB / 0.7062 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.1976, allocations: 0.9695 MB / 0.7071 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1976, allocations: 0 / 0.7071 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1976, allocations: 0 / 0.7071 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.467e-06/0.1977, allocations: 0 / 0.7071 GB, free: 6.355 MB / 0.4981 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.001645/0.1993, allocations: 0.9698 MB / 0.708 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1994, allocations: 12.03 kB / 0.7081 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.1995, allocations: 102.6 kB / 0.7082 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.2009, allocations: 195.9 kB / 0.7083 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007812/0.2017, allocations: 0.4945 MB / 0.7088 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.2017, allocations: 33.38 kB / 0.7089 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.2019, allocations: 56.55 kB / 0.7089 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.2032, allocations: 0.8316 MB / 0.7097 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.2033, allocations: 3.938 kB / 0.7097 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.175e-05/0.2033, allocations: 24 kB / 0.7097 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001989/0.2035, allocations: 60.95 kB / 0.7098 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009722/0.2045, allocations: 0.5736 MB / 0.7104 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005081/0.2096, allocations: 4.589 MB / 0.7148 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.2102, allocations: 295.2 kB / 0.7151 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/0.2105, allocations: 237.3 kB / 0.7154 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.2106, allocations: 4.281 kB / 0.7154 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.2106, allocations: 38.84 kB / 0.7154 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 2.805e-06/0.2106, allocations: 0 / 0.7154 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.005762/0.2164, allocations: 2.619 MB / 0.718 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.2164, allocations: 55.41 kB / 0.718 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.217, allocations: 466 kB / 0.7185 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/0.217, allocations: 41.64 kB / 0.7185 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.2173, allocations: 343.6 kB / 0.7188 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.2175, allocations: 141.9 kB / 0.719 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.2176, allocations: 102.2 kB / 0.7191 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.2178, allocations: 362.8 kB / 0.7194 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.2182, allocations: 241 kB / 0.7196 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005129/0.2187, allocations: 410.4 kB / 0.72 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.2197, allocations: 0.6779 MB / 0.7207 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2197, allocations: 3.938 kB / 0.7207 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00177/0.2214, allocations: 0.921 MB / 0.7216 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2215, allocations: 8 kB / 0.7216 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2215, allocations: 4 kB / 0.7216 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008029/0.2223, allocations: 230.7 kB / 0.7218 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005136/0.2228, allocations: 115.8 kB / 0.7219 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005793/0.2286, allocations: 5.343 MB / 0.7271 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.2292, allocations: 27.97 kB / 0.7272 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.2293, allocations: 24 kB / 0.7272 GB, free: 460 kB / 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.0003814/0.2296, allocations: 226.3 kB / 0.7274 GB, free: 224 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.2298, allocations: 59.28 kB / 0.7275 GB, free: 164 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.2314, allocations: 0.7772 MB / 0.7282 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.2314, allocations: 4 kB / 0.7282 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2314, allocations: 4 kB / 0.7282 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.2314, allocations: 3.984 kB / 0.7282 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.2341, allocations: 1.498 MB / 0.7297 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2341, allocations: 4 kB / 0.7297 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.2345, allocations: 71.88 kB / 0.7298 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006787/0.2352, allocations: 206.8 kB / 0.73 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.2352, allocations: 8 kB / 0.73 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/0.2411, allocations: 5.273 MB / 0.7351 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.2411, allocations: 4.031 kB / 0.7351 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.2432, allocations: 1.143 MB / 0.7362 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.2435, allocations: 172.4 kB / 0.7364 GB, free: 6.398 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.936e-05/0.2435, allocations: 8 kB / 0.7364 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/0.2439, allocations: 31.95 kB / 0.7365 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.244, allocations: 27.97 kB / 0.7365 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.244, allocations: 19.92 kB / 0.7365 GB, free: 6.312 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003853/0.2444, allocations: 318.9 kB / 0.7368 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2444, allocations: 0 / 0.7368 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007272/0.2451, allocations: 164 kB / 0.737 GB, free: 5.844 MB / 0.5294 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.002277/0.2474, allocations: 1.684 MB / 0.7386 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001966/0.2494, allocations: 1.067 MB / 0.7396 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.2494, allocations: 0 / 0.7396 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.2505, allocations: 0.6837 MB / 0.7403 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.2514, allocations: 177 kB / 0.7405 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00954/0.261, allocations: 5.725 MB / 0.7461 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007457/0.2618, allocations: 0.9494 MB / 0.747 GB, free: 11.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004658/0.2622, allocations: 117 kB / 0.7471 GB, free: 11 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.2625, allocations: 207.4 kB / 0.7473 GB, free: 10.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.463e-06/0.2626, allocations: 0 / 0.7473 GB, free: 10.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06621/0.3288, allocations: 14.04 MB / 0.761 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.909/10.24, allocations: 14.34 kB / 0.761 GB, free: 13.05 MB / 0.5606 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)