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.001327/0.001333, 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.001518/0.001518, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002661/0.002661, allocations: 290.8 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002783/0.002783, allocations: 102.6 kB / 0.6066 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1598, allocations: 89.15 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04212/0.2019, allocations: 35.13 MB / 0.7279 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01706/0.219, allocations: 9.937 MB / 0.7376 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003017/0.2221, allocations: 143.3 kB / 0.7378 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00972/0.2318, allocations: 3.811 MB / 0.7415 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00585/0.2377, allocations: 2.028 MB / 0.7435 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005118/0.2429, allocations: 1.959 MB / 0.7454 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01007/0.2529, allocations: 7.975 MB / 0.7532 GB, free: 7.059 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2967/0.5497, allocations: 9.578 MB / 0.7625 GB, free: 19.77 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005184/0.5549, allocations: 3.353 MB / 0.7658 GB, free: 19.71 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006524/0.5615, allocations: 3.74 MB / 0.7694 GB, free: 19.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002416/0.5639, allocations: 0.6792 MB / 0.7701 GB, free: 19.27 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004243/0.5682, allocations: 1.443 MB / 0.7715 GB, free: 19.27 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004142/0.5724, allocations: 2.616 MB / 0.7741 GB, free: 19.08 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007003/0.5794, allocations: 3.097 MB / 0.7771 GB, free: 18.33 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.5925, allocations: 10.32 MB / 0.7872 GB, free: 17.42 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.5925, allocations: 0.5 kB / 0.7872 GB, free: 17.42 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.186e-06/0.5925, allocations: 0 / 0.7872 GB, free: 17.42 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002998/0.5928, allocations: 0.5625 kB / 0.7872 GB, free: 17.42 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01505/0.6079, allocations: 5.403 MB / 0.7925 GB, free: 15.44 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.6079, allocations: 13.06 kB / 0.7925 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001573/0.6095, allocations: 0.7001 MB / 0.7931 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005002/0.6145, allocations: 0.9597 MB / 0.7941 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005569/0.6201, allocations: 2.996 MB / 0.797 GB, free: 14.17 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002444/0.6204, allocations: 356.1 kB / 0.7973 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.6215, allocations: 470 kB / 0.7978 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.6352, allocations: 7.912 MB / 0.8055 GB, free: 9.867 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001115/0.6354, allocations: 21.58 kB / 0.8055 GB, free: 9.859 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000595/0.636, allocations: 209.7 kB / 0.8057 GB, free: 9.715 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004481/0.6364, allocations: 367 kB / 0.8061 GB, free: 9.625 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.6494, allocations: 5.934 MB / 0.8119 GB, free: 6.652 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05404/0.7035, allocations: 36.22 MB / 0.8473 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003618/0.7072, allocations: 2.134 MB / 0.8493 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.7093, allocations: 1.48 MB / 0.8508 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.718e-05/0.7094, allocations: 17.31 kB / 0.8508 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.496e-05/0.7095, allocations: 63.08 kB / 0.8509 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=157): time 3.276e-06/0.7095, allocations: 0 / 0.8509 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=160): time 0.01538/0.7249, allocations: 7.538 MB / 0.8582 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.725, allocations: 76.22 kB / 0.8583 GB, free: 9.66 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/0.7278, allocations: 1.868 MB / 0.8601 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002123/0.728, allocations: 49.7 kB / 0.8602 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.7296, allocations: 2.129 MB / 0.8623 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00063/0.7303, allocations: 0.5567 MB / 0.8628 GB, free: 5.012 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006901/0.7309, allocations: 395.8 kB / 0.8632 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.7311, allocations: 301.1 kB / 0.8635 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/0.7328, allocations: 1.062 MB / 0.8645 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.7351, allocations: 1.762 MB / 0.8662 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004307/0.7395, allocations: 3.046 MB / 0.8692 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.7395, allocations: 8 kB / 0.8692 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007186/0.7467, allocations: 3.929 MB / 0.873 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.7467, allocations: 12.22 kB / 0.873 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.7468, allocations: 28 kB / 0.8731 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00262/0.7494, allocations: 0.942 MB / 0.874 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/0.7512, allocations: 422 kB / 0.8744 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02442/0.7756, allocations: 22.76 MB / 0.8966 GB, free: 392 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.7781, allocations: 119.9 kB / 0.8967 GB, free: 272 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/0.7784, allocations: 100.1 kB / 0.8968 GB, free: 172 kB / 0.6231 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.003426/0.7818, allocations: 1.645 MB / 0.8984 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000583/0.7824, allocations: 253.1 kB / 0.8987 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006226/0.7886, allocations: 3.269 MB / 0.9019 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.7887, allocations: 19.38 kB / 0.9019 GB, free: 10.99 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.855e-05/0.7887, allocations: 8 kB / 0.9019 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.7887, allocations: 7.969 kB / 0.9019 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.8031, allocations: 7.552 MB / 0.9093 GB, free: 3.363 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.8032, allocations: 4.562 kB / 0.9093 GB, free: 3.359 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009529/0.8041, allocations: 213.4 kB / 0.9095 GB, free: 3.16 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.8066, allocations: 0.9098 MB / 0.9104 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.8067, allocations: 36 kB / 0.9104 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0241/0.8308, allocations: 22.74 MB / 0.9326 GB, free: 9.879 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.8308, allocations: 7.984 kB / 0.9326 GB, free: 9.871 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006675/0.8375, allocations: 3.376 MB / 0.9359 GB, free: 6.422 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/0.839, allocations: 0.5253 MB / 0.9364 GB, free: 5.875 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003652/0.8393, allocations: 39.98 kB / 0.9365 GB, free: 5.836 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.8405, allocations: 91.83 kB / 0.9366 GB, free: 5.746 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/0.8409, allocations: 143.2 kB / 0.9367 GB, free: 5.613 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.8411, allocations: 47.98 kB / 0.9367 GB, free: 5.566 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001898/0.843, allocations: 1.221 MB / 0.9379 GB, free: 4.332 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.71e-07/0.843, allocations: 0 / 0.9379 GB, free: 4.332 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003139/0.8461, allocations: 0.9023 MB / 0.9388 GB, free: 3.43 MB / 0.67 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.006104/0.8522, allocations: 3.986 MB / 0.9427 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.009489/0.8617, allocations: 5.206 MB / 0.9478 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.917e-05/0.8618, allocations: 0 / 0.9478 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.004892/0.8667, allocations: 2.999 MB / 0.9507 GB, free: 6.98 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/0.871, allocations: 0.8207 MB / 0.9515 GB, free: 6.184 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04985/0.9209, allocations: 27.55 MB / 0.9784 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004431/0.9253, allocations: 3.209 MB / 0.9816 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002093/0.9275, allocations: 0.5293 MB / 0.9821 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/0.9296, allocations: 1.651 MB / 0.9837 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of SimCode: time 9.42e-07/0.9296, allocations: 3.938 kB / 0.9837 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4607/1.39, allocations: 70.9 MB / 1.053 GB, free: 273.6 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.6, allocations: 10.88 kB / 1.053 GB, free: 273.6 MB / 0.7794 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)