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.001814/0.001814, allocations: 108 kB / 15.61 MB, free: 152 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.002057/0.002057, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002526/0.002526, allocations: 287 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00276/0.002761, allocations: 105.4 kB / 0.6066 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1874, allocations: 89.15 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03972/0.2271, allocations: 33.31 MB / 0.7262 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02448/0.2517, allocations: 14.82 MB / 0.7406 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003658/0.2554, allocations: 151.2 kB / 0.7408 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.009799/0.2652, allocations: 3.658 MB / 0.7443 GB, free: 116 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008185/0.2734, allocations: 2.885 MB / 0.7472 GB, free: 13.21 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006067/0.2795, allocations: 2.331 MB / 0.7494 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01113/0.2907, allocations: 8.804 MB / 0.758 GB, free: 2.047 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3089/0.5996, allocations: 9.627 MB / 0.7674 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007911/0.6076, allocations: 3.942 MB / 0.7713 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007613/0.6153, allocations: 4.038 MB / 0.7752 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.00274/0.618, allocations: 0.7154 MB / 0.7759 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005898/0.6239, allocations: 1.721 MB / 0.7776 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.005299/0.6293, allocations: 2.828 MB / 0.7804 GB, free: 13.9 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007157/0.6365, allocations: 3.388 MB / 0.7837 GB, free: 13.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01243/0.6489, allocations: 11.12 MB / 0.7945 GB, free: 12.05 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.6489, allocations: 1.156 kB / 0.7945 GB, free: 12.05 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6489, allocations: 4.562 kB / 0.7945 GB, free: 12.05 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000263/0.6492, allocations: 0 / 0.7945 GB, free: 12.05 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: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01444/0.6637, allocations: 5.977 MB / 0.8004 GB, free: 9.547 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.6637, allocations: 9.625 kB / 0.8004 GB, free: 9.547 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001267/0.665, allocations: 0.7265 MB / 0.8011 GB, free: 9.352 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006612/0.6716, allocations: 1.138 MB / 0.8022 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006506/0.6781, allocations: 3.332 MB / 0.8055 GB, free: 7.195 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/0.6784, allocations: 375.9 kB / 0.8058 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00111/0.6795, allocations: 492.5 kB / 0.8063 GB, free: 6.875 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.6913, allocations: 8.011 MB / 0.8141 GB, free: 2.039 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.6914, allocations: 23.06 kB / 0.8141 GB, free: 2.031 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005413/0.692, allocations: 216.6 kB / 0.8143 GB, free: 1.879 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009751/0.693, allocations: 441 kB / 0.8148 GB, free: 1.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009091/0.7021, allocations: 6.079 MB / 0.8207 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.745, allocations: 35.15 MB / 0.855 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002981/0.748, allocations: 2.02 MB / 0.857 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002645/0.7507, allocations: 1.871 MB / 0.8588 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.7508, allocations: 18 kB / 0.8588 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.245e-05/0.7508, allocations: 56.56 kB / 0.8589 GB, free: 6.941 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=171): time 3.537e-06/0.7509, allocations: 0 / 0.8589 GB, free: 6.941 MB / 0.5919 GB Notification: Performance of matching and sorting (n=276): time 0.1604/0.9112, allocations: 38.88 MB / 0.8969 GB, free: 172 kB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.9113, allocations: 80.95 kB / 0.897 GB, free: 80 kB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004174/0.9155, allocations: 2.278 MB / 0.8992 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0006057/0.9162, allocations: 73.7 kB / 0.8992 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001948/0.9181, allocations: 2.28 MB / 0.9015 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001277/0.9194, allocations: 0.9265 MB / 0.9024 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/0.9204, allocations: 0.5139 MB / 0.9029 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.9206, allocations: 301.1 kB / 0.9032 GB, free: 9.668 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00306/0.9236, allocations: 1.973 MB / 0.9051 GB, free: 7.691 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003614/0.9273, allocations: 2.601 MB / 0.9076 GB, free: 4.859 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007162/0.9344, allocations: 4.93 MB / 0.9124 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.9345, allocations: 8 kB / 0.9125 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01554/0.95, allocations: 7.757 MB / 0.92 GB, free: 8.098 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.9501, allocations: 12 kB / 0.92 GB, free: 8.086 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/0.9501, allocations: 19.94 kB / 0.9201 GB, free: 8.066 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009635/0.9598, allocations: 3.241 MB / 0.9232 GB, free: 4.812 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/0.9616, allocations: 402.2 kB / 0.9236 GB, free: 4.445 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0509/1.013, allocations: 33.9 MB / 0.9567 GB, free: 1.789 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/1.016, allocations: 159.8 kB / 0.9569 GB, free: 1.633 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004199/1.017, allocations: 111.4 kB / 0.957 GB, free: 1.527 MB / 0.6856 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.004024/1.021, allocations: 1.795 MB / 0.9587 GB, free: 15.75 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008251/1.022, allocations: 336.1 kB / 0.959 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/1.037, allocations: 7.361 MB / 0.9662 GB, free: 8.082 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.745e-05/1.037, allocations: 32 kB / 0.9663 GB, free: 8.051 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001005/1.037, allocations: 28 kB / 0.9663 GB, free: 8.023 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-05/1.037, allocations: 15.94 kB / 0.9663 GB, free: 8.008 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02749/1.065, allocations: 12.92 MB / 0.9789 GB, free: 11.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/1.065, allocations: 12.03 kB / 0.9789 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/1.066, allocations: 232.1 kB / 0.9792 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008644/1.074, allocations: 2.876 MB / 0.982 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003738/1.075, allocations: 48 kB / 0.982 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04798/1.123, allocations: 32.7 MB / 1.014 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/1.123, allocations: 11.56 kB / 1.014 GB, free: 6.453 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.137, allocations: 6.884 MB / 1.021 GB, free: 15.47 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003025/1.14, allocations: 0.7822 MB / 1.021 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000882/1.141, allocations: 51.47 kB / 1.021 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.143, allocations: 175.8 kB / 1.022 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/1.144, allocations: 253.3 kB / 1.022 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.144, allocations: 68 kB / 1.022 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002448/1.147, allocations: 1.525 MB / 1.023 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/1.147, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004486/1.151, allocations: 1.371 MB / 1.025 GB, free: 11.24 MB / 0.7637 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.165, allocations: 7.524 MB / 1.032 GB, free: 3.613 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01601/1.181, allocations: 8.377 MB / 1.04 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/1.181, allocations: 0 / 1.04 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.008422/1.189, allocations: 4.406 MB / 1.045 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005192/1.195, allocations: 1.128 MB / 1.046 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3287/1.523, allocations: 43.85 MB / 1.089 GB, free: 263 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005485/1.529, allocations: 3.64 MB / 1.092 GB, free: 261.7 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002238/1.531, allocations: 0.5529 MB / 1.093 GB, free: 261.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002237/1.533, allocations: 1.973 MB / 1.095 GB, free: 260 MB / 0.7794 GB Notification: Performance of SimCode: time 1.092e-06/1.533, allocations: 0 / 1.095 GB, free: 260 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1598/1.693, allocations: 112.7 MB / 1.205 GB, free: 163.2 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/14.01, allocations: 7.047 kB / 1.205 GB, free: 163.2 MB / 0.7794 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)