Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",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.007276/0.007276, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001454/0.001454, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 293.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9376/0.9376, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 91.86 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.375, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03316/0.4082, allocations: 32.59 MB / 0.7977 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01517/0.4234, allocations: 10.28 MB / 0.8078 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.4259, allocations: 151.2 kB / 0.8079 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.008961/0.4349, allocations: 3.71 MB / 0.8116 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.4398, allocations: 1.96 MB / 0.8135 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005159/0.445, allocations: 2.127 MB / 0.8155 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008039/0.4531, allocations: 7.345 MB / 0.8227 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01117/0.4643, allocations: 9.408 MB / 0.8319 GB, free: 4 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004591/0.4689, allocations: 3.229 MB / 0.8351 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004707/0.4736, allocations: 3.473 MB / 0.8384 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.4751, allocations: 0.6484 MB / 0.8391 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.4791, allocations: 1.775 MB / 0.8408 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.003513/0.4826, allocations: 2.546 MB / 0.8433 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.005072/0.4877, allocations: 2.898 MB / 0.8461 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.4992, allocations: 10.14 MB / 0.856 GB, free: 7.23 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.4993, allocations: 3.984 kB / 0.856 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4993, allocations: 0 / 0.856 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0002582/0.4996, allocations: 0 / 0.856 GB, free: 7.227 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01152/0.5111, allocations: 5.12 MB / 0.861 GB, free: 2.027 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.5111, allocations: 8.031 kB / 0.861 GB, free: 2.02 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001662/0.5128, allocations: 0.6859 MB / 0.8617 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005702/0.5185, allocations: 0.9813 MB / 0.8627 GB, free: 348 kB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006514/0.5251, allocations: 3.059 MB / 0.8657 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/0.5254, allocations: 349.7 kB / 0.866 GB, free: 12.88 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001428/0.5268, allocations: 464.3 kB / 0.8664 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/0.5427, allocations: 7.671 MB / 0.8739 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002043/0.5429, allocations: 19.83 kB / 0.8739 GB, free: 4.387 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/0.544, allocations: 200 kB / 0.8741 GB, free: 4.191 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003579/0.5444, allocations: 313 kB / 0.8744 GB, free: 3.883 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/0.555, allocations: 5.714 MB / 0.88 GB, free: 14.15 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03382/0.5888, allocations: 34.89 MB / 0.9141 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.5914, allocations: 2.161 MB / 0.9162 GB, free: 5.781 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.593, allocations: 1.261 MB / 0.9174 GB, free: 4.523 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 7.672e-05/0.5931, allocations: 13.31 kB / 0.9174 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.5931, allocations: 47.88 kB / 0.9175 GB, free: 4.457 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=133): time 3.316e-06/0.5931, allocations: 0 / 0.9175 GB, free: 4.457 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136): time 0.013/0.6061, allocations: 7.149 MB / 0.9245 GB, free: 13.04 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.6062, allocations: 64.72 kB / 0.9245 GB, free: 12.97 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.6081, allocations: 1.484 MB / 0.926 GB, free: 11.43 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.964e-05/0.6082, allocations: 57.69 kB / 0.926 GB, free: 11.37 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.6093, allocations: 2.061 MB / 0.928 GB, free: 9.289 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003706/0.6097, allocations: 0.4957 MB / 0.9285 GB, free: 8.789 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004713/0.6102, allocations: 355.3 kB / 0.9289 GB, free: 8.434 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.129e-05/0.6103, allocations: 305.1 kB / 0.9292 GB, free: 8.133 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.6115, allocations: 0.9096 MB / 0.93 GB, free: 7.223 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.613, allocations: 1.593 MB / 0.9316 GB, free: 5.316 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002943/0.616, allocations: 2.745 MB / 0.9343 GB, free: 2.262 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.616, allocations: 4 kB / 0.9343 GB, free: 2.258 MB / 0.7012 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005513/0.6215, allocations: 3.543 MB / 0.9377 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.6216, allocations: 12 kB / 0.9378 GB, free: 14.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/0.6216, allocations: 27.94 kB / 0.9378 GB, free: 14.63 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.6241, allocations: 0.9038 MB / 0.9387 GB, free: 13.69 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.6251, allocations: 343.4 kB / 0.939 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01884/0.644, allocations: 23.12 MB / 0.9616 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.6458, allocations: 104 kB / 0.9617 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002674/0.6461, allocations: 87.88 kB / 0.9618 GB, free: 4.363 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 (185): * Single equations (assignments): 173 * 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 {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (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.00301/0.6491, allocations: 1.616 MB / 0.9633 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/0.6496, allocations: 218.6 kB / 0.9635 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3047/0.9543, allocations: 2.978 MB / 0.9665 GB, free: 181.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.9544, allocations: 13.12 kB / 0.9665 GB, free: 181.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.17e-05/0.9544, allocations: 9.688 kB / 0.9665 GB, free: 181.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/0.9545, allocations: 7.766 kB / 0.9665 GB, free: 181.2 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/0.9668, allocations: 7.335 MB / 0.9736 GB, free: 179.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.9669, allocations: 9.281 kB / 0.9737 GB, free: 179.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.9677, allocations: 177.3 kB / 0.9738 GB, free: 179.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/0.97, allocations: 0.8212 MB / 0.9746 GB, free: 178.9 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.622e-05/0.9701, allocations: 27.02 kB / 0.9747 GB, free: 178.9 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/0.9845, allocations: 21.96 MB / 0.9961 GB, free: 160 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.9845, allocations: 11.94 kB / 0.9961 GB, free: 160 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004329/0.9888, allocations: 3.038 MB / 0.9991 GB, free: 158.7 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008459/0.9897, allocations: 475.1 kB / 0.9995 GB, free: 158.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.9899, allocations: 32.06 kB / 0.9996 GB, free: 158.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007751/0.9907, allocations: 71.8 kB / 0.9996 GB, free: 158.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.991, allocations: 125.7 kB / 0.9997 GB, free: 158.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.846e-05/0.9911, allocations: 38.31 kB / 0.9998 GB, free: 158.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001032/0.9921, allocations: 0.9727 MB / 1.001 GB, free: 158 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9921, allocations: 0 / 1.001 GB, free: 158 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00226/0.9944, allocations: 0.7899 MB / 1.002 GB, free: 157.9 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 (91): * Single equations (assignments): 79 * 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,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,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003941/0.9983, allocations: 3.629 MB / 1.005 GB, free: 156 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004301/1.003, allocations: 4.033 MB / 1.009 GB, free: 153.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.003, allocations: 0 / 1.009 GB, free: 153.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002796/1.005, allocations: 2.746 MB / 1.012 GB, free: 151.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/1.008, allocations: 0.7418 MB / 1.012 GB, free: 150.7 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02622/1.035, allocations: 22.46 MB / 1.034 GB, free: 127.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00237/1.037, allocations: 3.105 MB / 1.037 GB, free: 124.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00105/1.038, allocations: 457.9 kB / 1.038 GB, free: 123.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/1.039, allocations: 1.538 MB / 1.039 GB, free: 122.3 MB / 0.7325 GB Notification: Performance of SimCode: time 8.92e-07/1.039, allocations: 0 / 1.039 GB, free: 122.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/1.16, allocations: 61.46 MB / 1.099 GB, free: 61.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.81, allocations: 11.3 kB / 1.099 GB, free: 61.55 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1)