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.004708/0.004708, allocations: 98.67 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.001304/0.001304, allocations: 189.6 kB / 16.68 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002491/0.002491, allocations: 286.8 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 1.2/1.2, allocations: 178.5 MB / 0.5074 GB, free: 12.67 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 100.1 kB / 0.6943 GB, free: 15.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4419, allocations: 89.13 MB / 0.7814 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03932/0.4813, allocations: 32.6 MB / 0.8132 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01857/0.4999, allocations: 10.26 MB / 0.8232 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002793/0.5027, allocations: 147.2 kB / 0.8234 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.009462/0.5122, allocations: 3.715 MB / 0.827 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006186/0.5184, allocations: 1.858 MB / 0.8288 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006532/0.525, allocations: 2.133 MB / 0.8309 GB, free: 5.926 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01076/0.5358, allocations: 7.329 MB / 0.838 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01616/0.5519, allocations: 9.416 MB / 0.8472 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005795/0.5578, allocations: 3.178 MB / 0.8503 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005749/0.5635, allocations: 3.477 MB / 0.8537 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001738/0.5653, allocations: 0.6445 MB / 0.8544 GB, free: 13.72 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00426/0.5696, allocations: 1.775 MB / 0.8561 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.003589/0.5732, allocations: 2.55 MB / 0.8586 GB, free: 9.387 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.005065/0.5783, allocations: 2.898 MB / 0.8614 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01361/0.5919, allocations: 10.13 MB / 0.8713 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.5919, allocations: 4 kB / 0.8713 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.883e-06/0.592, allocations: 0 / 0.8713 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0003024/0.5923, allocations: 0 / 0.8713 GB, free: 12.32 MB / 0.6387 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.0104/0.6027, allocations: 5.124 MB / 0.8763 GB, free: 7.113 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.6027, allocations: 19.89 kB / 0.8763 GB, free: 7.094 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009348/0.6037, allocations: 0.6781 MB / 0.877 GB, free: 6.406 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005034/0.6087, allocations: 0.9774 MB / 0.878 GB, free: 5.426 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005331/0.6141, allocations: 3.063 MB / 0.8809 GB, free: 2.305 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002646/0.6143, allocations: 341.7 kB / 0.8813 GB, free: 1.969 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008068/0.6152, allocations: 468.3 kB / 0.8817 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/0.6294, allocations: 7.659 MB / 0.8892 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001488/0.6296, allocations: 35.75 kB / 0.8892 GB, free: 9.465 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005664/0.6301, allocations: 200 kB / 0.8894 GB, free: 9.27 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003834/0.6305, allocations: 312.9 kB / 0.8897 GB, free: 8.961 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0104/0.6409, allocations: 5.71 MB / 0.8953 GB, free: 3.234 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03957/0.6805, allocations: 34.89 MB / 0.9294 GB, free: 13.14 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002956/0.6835, allocations: 2.16 MB / 0.9315 GB, free: 10.86 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.6853, allocations: 1.264 MB / 0.9327 GB, free: 9.594 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 8.227e-05/0.6854, allocations: 13.31 kB / 0.9327 GB, free: 9.582 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.6855, allocations: 43.88 kB / 0.9328 GB, free: 9.531 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=133): time 3.336e-06/0.6855, allocations: 0 / 0.9328 GB, free: 9.531 MB / 0.7012 GB Notification: Performance of matching and sorting (n=136): time 0.01471/0.7002, allocations: 7.142 MB / 0.9397 GB, free: 2.125 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.7003, allocations: 76.64 kB / 0.9398 GB, free: 2.039 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00218/0.7025, allocations: 1.484 MB / 0.9413 GB, free: 0.5078 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 9.867e-05/0.7026, allocations: 45.7 kB / 0.9413 GB, free: 468 kB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001561/0.7042, allocations: 2.069 MB / 0.9433 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004561/0.7046, allocations: 0.4957 MB / 0.9438 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005732/0.7052, allocations: 351.3 kB / 0.9441 GB, free: 13.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.7054, allocations: 301.1 kB / 0.9444 GB, free: 13.22 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.7067, allocations: 0.9174 MB / 0.9453 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001985/0.7087, allocations: 1.593 MB / 0.9469 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003708/0.7125, allocations: 2.741 MB / 0.9496 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.7125, allocations: 8 kB / 0.9496 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006536/0.719, allocations: 3.535 MB / 0.953 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/0.7191, allocations: 16 kB / 0.953 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/0.7191, allocations: 24.03 kB / 0.9531 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/0.7219, allocations: 0.8999 MB / 0.9539 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.723, allocations: 351.4 kB / 0.9543 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0241/0.7471, allocations: 23.12 MB / 0.9769 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002224/0.7494, allocations: 99.95 kB / 0.9769 GB, free: 9.543 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002519/0.7497, allocations: 88.28 kB / 0.977 GB, free: 9.457 MB / 0.7481 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.004327/0.754, allocations: 1.602 MB / 0.9786 GB, free: 7.844 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006153/0.7546, allocations: 218.6 kB / 0.9788 GB, free: 7.629 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005833/0.7605, allocations: 3.002 MB / 0.9817 GB, free: 4.574 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.7605, allocations: 19.94 kB / 0.9818 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/0.7605, allocations: 8 kB / 0.9818 GB, free: 4.547 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.7606, allocations: 7.969 kB / 0.9818 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.7731, allocations: 7.329 MB / 0.9889 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.7731, allocations: 8 kB / 0.9889 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008105/0.7739, allocations: 175.7 kB / 0.9891 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/0.7765, allocations: 0.8262 MB / 0.9899 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.656e-05/0.7766, allocations: 31.98 kB / 0.9899 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3832/1.16, allocations: 21.95 MB / 1.011 GB, free: 185.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.16, allocations: 11.94 kB / 1.011 GB, free: 185.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005379/1.165, allocations: 3.035 MB / 1.014 GB, free: 184.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008615/1.166, allocations: 466.2 kB / 1.015 GB, free: 184.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/1.166, allocations: 30.06 kB / 1.015 GB, free: 184.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008199/1.167, allocations: 73.83 kB / 1.015 GB, free: 184.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000442/1.168, allocations: 123.8 kB / 1.015 GB, free: 184.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-05/1.168, allocations: 37.28 kB / 1.015 GB, free: 184.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001505/1.169, allocations: 0.9832 MB / 1.016 GB, free: 184 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2e-07/1.169, allocations: 0 / 1.016 GB, free: 184 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003269/1.173, allocations: 0.7845 MB / 1.017 GB, free: 183.9 MB / 0.7637 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.005231/1.178, allocations: 3.624 MB / 1.02 GB, free: 182.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005092/1.183, allocations: 4.046 MB / 1.024 GB, free: 179.7 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.183, allocations: 0 / 1.024 GB, free: 179.7 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.003277/1.186, allocations: 2.744 MB / 1.027 GB, free: 177.9 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/1.189, allocations: 0.7267 MB / 1.028 GB, free: 177.7 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02962/1.219, allocations: 22.46 MB / 1.05 GB, free: 166.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002657/1.222, allocations: 3.116 MB / 1.053 GB, free: 164.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001372/1.223, allocations: 455.1 kB / 1.053 GB, free: 164.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/1.225, allocations: 1.535 MB / 1.055 GB, free: 162.8 MB / 0.7637 GB Notification: Performance of SimCode: time 6.72e-07/1.225, allocations: 1.875 kB / 1.055 GB, free: 162.8 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1491/1.374, allocations: 61.47 MB / 1.115 GB, free: 102.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.35, allocations: 15.05 kB / 1.115 GB, free: 102.1 MB / 0.7637 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)