Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.005095/0.005095, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001143/0.001143, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 299.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8683/0.8683, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 99.84 kB / 0.681 GB, free: 7.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3854, allocations: 86.97 MB / 0.7659 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03442/0.4198, allocations: 35.11 MB / 0.8002 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01456/0.4344, allocations: 9.937 MB / 0.8099 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0027/0.4371, allocations: 155.2 kB / 0.8101 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.008345/0.4455, allocations: 3.809 MB / 0.8138 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005266/0.4508, allocations: 2.149 MB / 0.8159 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004276/0.4551, allocations: 1.964 MB / 0.8178 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008163/0.4633, allocations: 7.994 MB / 0.8256 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009439/0.4727, allocations: 9.518 MB / 0.8349 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004514/0.4773, allocations: 3.42 MB / 0.8382 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005219/0.4825, allocations: 3.738 MB / 0.8419 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001325/0.4839, allocations: 0.6797 MB / 0.8426 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002918/0.4868, allocations: 1.444 MB / 0.844 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00254/0.4893, allocations: 2.624 MB / 0.8465 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003683/0.493, allocations: 3.104 MB / 0.8496 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.5032, allocations: 10.41 MB / 0.8597 GB, free: 3.426 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.5033, allocations: 0 / 0.8597 GB, free: 3.426 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.813e-06/0.5033, allocations: 0 / 0.8597 GB, free: 3.426 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.000223/0.5035, allocations: 0 / 0.8597 GB, free: 3.426 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01071/0.5142, allocations: 5.538 MB / 0.8651 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.5143, allocations: 12.03 kB / 0.8651 GB, free: 13.8 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009512/0.5153, allocations: 0.7062 MB / 0.8658 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004498/0.5198, allocations: 0.9928 MB / 0.8668 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006416/0.5262, allocations: 3.196 MB / 0.8699 GB, free: 8.836 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.5265, allocations: 353.9 kB / 0.8703 GB, free: 8.488 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009826/0.5275, allocations: 468.3 kB / 0.8707 GB, free: 8.031 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/0.5401, allocations: 7.91 MB / 0.8784 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.5402, allocations: 27.75 kB / 0.8785 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004834/0.5407, allocations: 208 kB / 0.8787 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004522/0.5412, allocations: 361.1 kB / 0.879 GB, free: 15.17 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00945/0.5506, allocations: 5.941 MB / 0.8848 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03491/0.5856, allocations: 36 MB / 0.92 GB, free: 1.988 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003063/0.5887, allocations: 2.142 MB / 0.922 GB, free: 15.83 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/0.5904, allocations: 1.481 MB / 0.9235 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 7.991e-05/0.5905, allocations: 13.31 kB / 0.9235 GB, free: 14.34 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.5906, allocations: 59.75 kB / 0.9236 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=157): time 2.896e-06/0.5906, allocations: 0 / 0.9236 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of matching and sorting (n=160): time 0.01285/0.6034, allocations: 7.602 MB / 0.931 GB, free: 6.402 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.6035, allocations: 64.72 kB / 0.931 GB, free: 6.328 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002467/0.606, allocations: 1.864 MB / 0.9329 GB, free: 4.438 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.6061, allocations: 53.7 kB / 0.9329 GB, free: 4.379 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.6074, allocations: 2.196 MB / 0.9351 GB, free: 2.164 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004405/0.6078, allocations: 0.5771 MB / 0.9356 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005987/0.6084, allocations: 407.9 kB / 0.936 GB, free: 1.176 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.808e-05/0.6085, allocations: 305.1 kB / 0.9363 GB, free: 0.875 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.61, allocations: 1.062 MB / 0.9373 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.6119, allocations: 1.76 MB / 0.9391 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003483/0.6154, allocations: 3.049 MB / 0.942 GB, free: 10.36 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.6154, allocations: 12 kB / 0.942 GB, free: 10.35 MB / 0.7169 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006026/0.6215, allocations: 3.929 MB / 0.9459 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.6215, allocations: 16 kB / 0.9459 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.769e-05/0.6215, allocations: 20 kB / 0.9459 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002294/0.6238, allocations: 0.9357 MB / 0.9468 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/0.6253, allocations: 427.3 kB / 0.9472 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3292/0.9545, allocations: 22.77 MB / 0.9695 GB, free: 178.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.9565, allocations: 119.1 kB / 0.9696 GB, free: 178.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/0.9567, allocations: 106 kB / 0.9697 GB, free: 178.4 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.002481/0.9592, allocations: 1.647 MB / 0.9713 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/0.9596, allocations: 268.1 kB / 0.9716 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004716/0.9643, allocations: 3.27 MB / 0.9747 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.9643, allocations: 13.69 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.9643, allocations: 9.625 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.9644, allocations: 9.719 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009546/0.9739, allocations: 7.555 MB / 0.9822 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.9739, allocations: 3.969 kB / 0.9822 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000815/0.9748, allocations: 215.6 kB / 0.9824 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001831/0.9766, allocations: 0.8954 MB / 0.9832 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.022e-05/0.9767, allocations: 31.78 kB / 0.9833 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/0.9902, allocations: 22.74 MB / 1.005 GB, free: 154.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.9903, allocations: 11.92 kB / 1.005 GB, free: 154.6 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.9944, allocations: 3.399 MB / 1.009 GB, free: 153.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009465/0.9954, allocations: 0.5366 MB / 1.009 GB, free: 152.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.9957, allocations: 33.02 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.9967, allocations: 91.47 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.9969, allocations: 151.1 kB / 1.01 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.493e-05/0.997, allocations: 48.53 kB / 1.01 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001247/0.9983, allocations: 1.219 MB / 1.011 GB, free: 152.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9983, allocations: 0 / 1.011 GB, free: 152.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00211/1, allocations: 0.9031 MB / 1.012 GB, free: 151.6 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003926/1.004, allocations: 4.009 MB / 1.016 GB, free: 147.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004596/1.009, allocations: 4.436 MB / 1.02 GB, free: 142.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.009, allocations: 4 kB / 1.02 GB, free: 142.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002941/1.012, allocations: 3.012 MB / 1.023 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/1.015, allocations: 0.8114 MB / 1.024 GB, free: 139 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/1.04, allocations: 25.19 MB / 1.048 GB, free: 112.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/1.043, allocations: 3.205 MB / 1.051 GB, free: 109.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001423/1.044, allocations: 0.5262 MB / 1.052 GB, free: 109 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.046, allocations: 1.647 MB / 1.054 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of SimCode: time 7.62e-07/1.046, allocations: 4 kB / 1.054 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1262/1.172, allocations: 70.28 MB / 1.122 GB, free: 37.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.38, allocations: 10.58 kB / 1.122 GB, free: 37.95 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)