Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.004571/0.004571, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001085/0.001085, allocations: 193.7 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 295.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8879/0.8879, allocations: 169.2 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 95.84 kB / 0.681 GB, free: 7.434 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4079, allocations: 86.97 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03996/0.4479, allocations: 37.94 MB / 0.803 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01815/0.4661, allocations: 10.98 MB / 0.8137 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.4692, allocations: 155.2 kB / 0.8138 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.009823/0.479, allocations: 4.377 MB / 0.8181 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005491/0.4845, allocations: 2.332 MB / 0.8204 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005042/0.4896, allocations: 2.171 MB / 0.8225 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009508/0.4991, allocations: 9.292 MB / 0.8316 GB, free: 404 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01206/0.5112, allocations: 11.27 MB / 0.8426 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005835/0.5171, allocations: 4.055 MB / 0.8466 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00604/0.5231, allocations: 4.506 MB / 0.851 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.00152/0.5247, allocations: 0.8242 MB / 0.8518 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003026/0.5277, allocations: 1.588 MB / 0.8533 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.003048/0.5308, allocations: 3.158 MB / 0.8564 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004949/0.5357, allocations: 3.653 MB / 0.86 GB, free: 3.18 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.5472, allocations: 12.34 MB / 0.872 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.5472, allocations: 0 / 0.872 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.374e-06/0.5472, allocations: 0 / 0.872 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0003678/0.5476, allocations: 0 / 0.872 GB, free: 6.801 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01233/0.5599, allocations: 6.471 MB / 0.8783 GB, free: 256 kB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.56, allocations: 15.95 kB / 0.8783 GB, free: 240 kB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001107/0.5611, allocations: 0.8216 MB / 0.8792 GB, free: 15.4 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004695/0.5658, allocations: 1.098 MB / 0.8802 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006633/0.5725, allocations: 3.628 MB / 0.8838 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.5727, allocations: 423.7 kB / 0.8842 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008392/0.5736, allocations: 0.5511 MB / 0.8847 GB, free: 9.656 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.5876, allocations: 9.373 MB / 0.8939 GB, free: 15.95 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.5878, allocations: 31.77 kB / 0.8939 GB, free: 15.91 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005494/0.5883, allocations: 248 kB / 0.8941 GB, free: 15.67 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000535/0.5889, allocations: 422.9 kB / 0.8945 GB, free: 15.26 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/0.5999, allocations: 7.123 MB / 0.9015 GB, free: 8.129 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03663/0.6365, allocations: 41.06 MB / 0.9416 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003988/0.6405, allocations: 3.104 MB / 0.9446 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002565/0.6431, allocations: 2.153 MB / 0.9467 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.243e-05/0.6432, allocations: 22 kB / 0.9467 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.481e-05/0.6433, allocations: 64.42 kB / 0.9468 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=209): time 3.857e-06/0.6433, allocations: 0 / 0.9468 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=212): time 0.02232/0.6656, allocations: 10.63 MB / 0.9572 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.6657, allocations: 73.41 kB / 0.9573 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/0.6682, allocations: 2.01 MB / 0.9592 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.6683, allocations: 61.7 kB / 0.9593 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001394/0.6697, allocations: 2.474 MB / 0.9617 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005533/0.6703, allocations: 0.7668 MB / 0.9624 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006766/0.671, allocations: 485.5 kB / 0.9629 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.6711, allocations: 301.1 kB / 0.9632 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.6729, allocations: 1.376 MB / 0.9645 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.6751, allocations: 2.112 MB / 0.9666 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3657/1.041, allocations: 3.759 MB / 0.9703 GB, free: 180.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.657e-05/1.041, allocations: 5.969 kB / 0.9703 GB, free: 180.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00783/1.049, allocations: 5.085 MB / 0.9752 GB, free: 178.5 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/1.049, allocations: 14.75 kB / 0.9753 GB, free: 178.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/1.049, allocations: 21.56 kB / 0.9753 GB, free: 178.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003442/1.052, allocations: 1.59 MB / 0.9768 GB, free: 178.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/1.054, allocations: 451 kB / 0.9773 GB, free: 178.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01735/1.071, allocations: 18.59 MB / 0.9954 GB, free: 167.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/1.073, allocations: 147.4 kB / 0.9956 GB, free: 167 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/1.073, allocations: 107.6 kB / 0.9957 GB, free: 167 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002259/1.076, allocations: 1.945 MB / 0.9976 GB, free: 166.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004036/1.076, allocations: 303.8 kB / 0.9978 GB, free: 166.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005493/1.082, allocations: 4.453 MB / 1.002 GB, free: 164 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/1.082, allocations: 20 kB / 1.002 GB, free: 163.9 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/1.082, allocations: 20 kB / 1.002 GB, free: 163.9 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/1.082, allocations: 11.95 kB / 1.002 GB, free: 163.9 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/1.093, allocations: 9.655 MB / 1.012 GB, free: 154.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/1.093, allocations: 4 kB / 1.012 GB, free: 154.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008819/1.094, allocations: 239.6 kB / 1.012 GB, free: 153.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002634/1.097, allocations: 1.435 MB / 1.013 GB, free: 152.5 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/1.097, allocations: 43.98 kB / 1.013 GB, free: 152.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.113, allocations: 18.57 MB / 1.031 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.113, allocations: 7.984 kB / 1.031 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005442/1.118, allocations: 4.561 MB / 1.036 GB, free: 128.9 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/1.119, allocations: 0.6496 MB / 1.037 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003236/1.12, allocations: 40 kB / 1.037 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/1.121, allocations: 115.9 kB / 1.037 GB, free: 128 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/1.121, allocations: 181.6 kB / 1.037 GB, free: 127.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/1.121, allocations: 64.19 kB / 1.037 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00146/1.123, allocations: 1.319 MB / 1.038 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/1.123, allocations: 0 / 1.038 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002611/1.126, allocations: 1.145 MB / 1.039 GB, free: 125.3 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005209/1.131, allocations: 5.163 MB / 1.044 GB, free: 120.1 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005545/1.136, allocations: 4.733 MB / 1.049 GB, free: 115.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/1.136, allocations: 0 / 1.049 GB, free: 115.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003345/1.14, allocations: 2.943 MB / 1.052 GB, free: 112.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003166/1.143, allocations: 0.9002 MB / 1.053 GB, free: 111.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/1.175, allocations: 30.54 MB / 1.083 GB, free: 79.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/1.178, allocations: 3.694 MB / 1.086 GB, free: 76.02 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00143/1.18, allocations: 0.5518 MB / 1.087 GB, free: 75.46 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/1.181, allocations: 1.948 MB / 1.089 GB, free: 73.52 MB / 0.7325 GB Notification: Performance of SimCode: time 5.01e-07/1.181, allocations: 0 / 1.089 GB, free: 73.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/1.29, allocations: 85.29 MB / 1.172 GB, free: 5.234 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.88, allocations: 18.27 kB / 1.172 GB, free: 5.223 MB / 0.7481 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)