Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",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.005838/0.005838, allocations: 102.6 kB / 15.74 MB, free: 6.5 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.001322/0.001322, allocations: 196.8 kB / 16.68 MB, free: 6.375 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002828/0.002829, allocations: 282.6 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.081/1.081, allocations: 178.6 MB / 0.5074 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00269/0.00269, allocations: 107.8 kB / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4948/0.4975, allocations: 89.14 MB / 0.7814 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.04031/0.5379, allocations: 33.32 MB / 0.8139 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02465/0.5626, allocations: 14.83 MB / 0.8284 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003522/0.5661, allocations: 155.5 kB / 0.8285 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.009776/0.5759, allocations: 3.652 MB / 0.8321 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00871/0.5847, allocations: 2.889 MB / 0.8349 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006539/0.5912, allocations: 2.33 MB / 0.8372 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01234/0.6036, allocations: 8.814 MB / 0.8458 GB, free: 13 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01311/0.6167, allocations: 9.573 MB / 0.8551 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007506/0.6243, allocations: 3.953 MB / 0.859 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00719/0.6315, allocations: 4.038 MB / 0.8629 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.002449/0.634, allocations: 0.7148 MB / 0.8636 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005254/0.6393, allocations: 1.716 MB / 0.8653 GB, free: 8.855 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.004247/0.6435, allocations: 2.834 MB / 0.8681 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.006222/0.6498, allocations: 3.388 MB / 0.8714 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.6643, allocations: 11.22 MB / 0.8824 GB, free: 7.352 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.6644, allocations: 0 / 0.8824 GB, free: 7.352 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6644, allocations: 0 / 0.8824 GB, free: 7.352 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002707/0.6647, allocations: 0 / 0.8824 GB, free: 7.352 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: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01378/0.6784, allocations: 6.136 MB / 0.8883 GB, free: 1.129 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.6785, allocations: 12.03 kB / 0.8884 GB, free: 1.117 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001207/0.6797, allocations: 0.7232 MB / 0.8891 GB, free: 392 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006678/0.6864, allocations: 1.172 MB / 0.8902 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/0.6937, allocations: 3.534 MB / 0.8937 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003426/0.6941, allocations: 378.4 kB / 0.894 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.6955, allocations: 495.9 kB / 0.8945 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.7111, allocations: 8.009 MB / 0.9023 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001395/0.7113, allocations: 27.78 kB / 0.9023 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006232/0.7119, allocations: 216 kB / 0.9025 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001105/0.713, allocations: 441.5 kB / 0.903 GB, free: 1.781 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/0.7246, allocations: 6.077 MB / 0.9089 GB, free: 11.69 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04398/0.7686, allocations: 34.96 MB / 0.943 GB, free: 5.566 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003205/0.7718, allocations: 2.026 MB / 0.945 GB, free: 3.531 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003036/0.7749, allocations: 1.885 MB / 0.9469 GB, free: 1.645 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000152/0.775, allocations: 18 kB / 0.9469 GB, free: 1.629 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/0.7751, allocations: 60.5 kB / 0.9469 GB, free: 1.559 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=171): time 3.326e-06/0.7751, allocations: 0 / 0.9469 GB, free: 1.559 MB / 0.7012 GB Notification: Performance of matching and sorting (n=276): time 0.1602/0.9353, allocations: 38.97 MB / 0.985 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/0.9355, allocations: 77.58 kB / 0.9851 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/0.9391, allocations: 2.286 MB / 0.9873 GB, free: 8.109 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0004459/0.9395, allocations: 73.7 kB / 0.9874 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.9414, allocations: 2.338 MB / 0.9896 GB, free: 5.672 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001134/0.9426, allocations: 0.976 MB / 0.9906 GB, free: 4.688 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/0.9436, allocations: 0.5064 MB / 0.9911 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.9437, allocations: 305.1 kB / 0.9914 GB, free: 3.871 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003131/0.9469, allocations: 1.973 MB / 0.9933 GB, free: 1.895 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00362/0.9505, allocations: 2.606 MB / 0.9959 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007332/0.9578, allocations: 4.933 MB / 1.001 GB, free: 9.836 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.9579, allocations: 4 kB / 1.001 GB, free: 9.832 MB / 0.7637 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01619/0.9741, allocations: 7.77 MB / 1.008 GB, free: 1.992 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.9741, allocations: 12.94 kB / 1.008 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.9742, allocations: 16 kB / 1.008 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01012/0.9843, allocations: 3.213 MB / 1.011 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/0.9861, allocations: 399.4 kB / 1.012 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05002/1.036, allocations: 33.91 MB / 1.045 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/1.039, allocations: 163.8 kB / 1.045 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003689/1.04, allocations: 111.9 kB / 1.045 GB, free: 11.31 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003224/1.043, allocations: 1.801 MB / 1.047 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007444/1.044, allocations: 349.8 kB / 1.047 GB, free: 9.156 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/1.059, allocations: 7.353 MB / 1.054 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-05/1.059, allocations: 31.98 kB / 1.054 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.199e-05/1.059, allocations: 28 kB / 1.055 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.732e-05/1.059, allocations: 11.95 kB / 1.055 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.084, allocations: 12.92 MB / 1.067 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-05/1.085, allocations: 11.98 kB / 1.067 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/1.086, allocations: 231.6 kB / 1.067 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008702/1.094, allocations: 2.853 MB / 1.07 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/1.095, allocations: 48 kB / 1.07 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3737/1.468, allocations: 32.68 MB / 1.102 GB, free: 236.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.468, allocations: 9.938 kB / 1.102 GB, free: 236.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.48, allocations: 6.897 MB / 1.109 GB, free: 233.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.482, allocations: 0.7971 MB / 1.11 GB, free: 233.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006256/1.482, allocations: 63.56 kB / 1.11 GB, free: 233.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.484, allocations: 166.3 kB / 1.11 GB, free: 233.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009079/1.485, allocations: 260.4 kB / 1.11 GB, free: 233.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/1.485, allocations: 72.47 kB / 1.11 GB, free: 233.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.002491/1.488, allocations: 1.525 MB / 1.112 GB, free: 232.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 6.21e-07/1.488, allocations: 0 / 1.112 GB, free: 232.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.005243/1.493, allocations: 1.369 MB / 1.113 GB, free: 232.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01382/1.507, allocations: 7.538 MB / 1.12 GB, free: 229 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01393/1.521, allocations: 6.943 MB / 1.127 GB, free: 225.2 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.725e-05/1.521, allocations: 5.953 kB / 1.127 GB, free: 225.2 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00864/1.53, allocations: 4.437 MB / 1.132 GB, free: 222.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007083/1.537, allocations: 1.121 MB / 1.133 GB, free: 221.9 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06021/1.597, allocations: 39.2 MB / 1.171 GB, free: 182 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004077/1.601, allocations: 3.639 MB / 1.174 GB, free: 178.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001825/1.603, allocations: 0.5556 MB / 1.175 GB, free: 177.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001785/1.605, allocations: 1.975 MB / 1.177 GB, free: 175.8 MB / 0.8262 GB Notification: Performance of SimCode: time 7.61e-07/1.605, allocations: 0 / 1.177 GB, free: 175.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1577/1.763, allocations: 111.6 MB / 1.286 GB, free: 65.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/18.39, allocations: 3.562 kB / 1.286 GB, free: 65.46 MB / 0.8262 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_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_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1)