Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.005486/0.005485, allocations: 97.22 kB / 15.73 MB, free: 6.055 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.001263/0.001263, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.316 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: 286.8 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 178.6 MB / 0.5074 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 92.14 kB / 0.6943 GB, free: 3.633 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4565/0.4593, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01901/0.4784, allocations: 14.04 MB / 0.795 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01703/0.4954, allocations: 9.398 MB / 0.8042 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.4973, allocations: 58.97 kB / 0.8043 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004655/0.5021, allocations: 1.666 MB / 0.8059 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005205/0.5073, allocations: 1.547 MB / 0.8074 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.5096, allocations: 0.7528 MB / 0.8082 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003732/0.5133, allocations: 2.517 MB / 0.8106 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.5151, allocations: 1.411 MB / 0.812 GB, free: 8.102 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001617/0.5168, allocations: 1.047 MB / 0.813 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.5185, allocations: 1.141 MB / 0.8141 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002502/0.5188, allocations: 176.3 kB / 0.8143 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00163/0.5204, allocations: 0.7871 MB / 0.8151 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006195/0.5211, allocations: 0.6168 MB / 0.8157 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.5221, allocations: 0.9452 MB / 0.8166 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003302/0.5254, allocations: 2.769 MB / 0.8193 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5254, allocations: 3.938 kB / 0.8193 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5254, allocations: 0 / 0.8193 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.306e-05/0.5255, allocations: 1.344 kB / 0.8193 GB, free: 3.453 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004201/0.5297, allocations: 2.191 MB / 0.8214 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.5297, allocations: 8.875 kB / 0.8214 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002527/0.53, allocations: 195 kB / 0.8216 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01201/0.542, allocations: 2.09 MB / 0.8237 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.5453, allocations: 1.305 MB / 0.8249 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.082e-05/0.5454, allocations: 85.91 kB / 0.825 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000271/0.5456, allocations: 124.6 kB / 0.8251 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006675/0.5523, allocations: 2.677 MB / 0.8278 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.5524, allocations: 6.406 kB / 0.8278 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/0.5526, allocations: 58.31 kB / 0.8278 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007138/0.5533, allocations: 179.5 kB / 0.828 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008419/0.5617, allocations: 2.798 MB / 0.8307 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.5779, allocations: 10.49 MB / 0.841 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007347/0.5852, allocations: 2.525 MB / 0.8434 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003485/0.5887, allocations: 1.272 MB / 0.8447 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.703e-05/0.5888, allocations: 13 kB / 0.8447 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.5889, allocations: 43.56 kB / 0.8447 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=89): time 3.015e-06/0.5889, allocations: 0 / 0.8447 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=131): time 0.04926/0.6382, allocations: 13.39 MB / 0.8578 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.6383, allocations: 68.72 kB / 0.8579 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.6398, allocations: 1.117 MB / 0.859 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002415/0.6401, allocations: 49.7 kB / 0.859 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005955/0.6407, allocations: 0.7325 MB / 0.8597 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005101/0.6412, allocations: 475.9 kB / 0.8602 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005319/0.6418, allocations: 259.5 kB / 0.8604 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001711/0.6419, allocations: 361.7 kB / 0.8608 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003618/0.6456, allocations: 1.339 MB / 0.8621 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00389/0.6495, allocations: 1.604 MB / 0.8637 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007513/0.657, allocations: 2.991 MB / 0.8666 GB, free: 6.469 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.657, allocations: 4 kB / 0.8666 GB, free: 6.465 MB / 0.6231 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01218/0.6692, allocations: 4.451 MB / 0.8709 GB, free: 1.961 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.6693, allocations: 8 kB / 0.8709 GB, free: 1.953 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.6693, allocations: 15.98 kB / 0.8709 GB, free: 1.938 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005464/0.6748, allocations: 1.431 MB / 0.8723 GB, free: 476 kB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/0.677, allocations: 443.2 kB / 0.8728 GB, free: 32 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03003/0.707, allocations: 26.69 MB / 0.8988 GB, free: 3.512 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/0.7099, allocations: 303.5 kB / 0.8991 GB, free: 3.215 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/0.7102, allocations: 67.95 kB / 0.8992 GB, free: 3.148 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008758/0.711, allocations: 431.5 kB / 0.8996 GB, free: 2.719 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003533/0.7114, allocations: 171.1 kB / 0.8998 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/0.7241, allocations: 4.461 MB / 0.9041 GB, free: 14.04 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.7242, allocations: 12 kB / 0.9041 GB, free: 14.02 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.156e-05/0.7242, allocations: 12 kB / 0.9041 GB, free: 14.01 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.7242, allocations: 7.969 kB / 0.9041 GB, free: 14 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.7403, allocations: 6.76 MB / 0.9107 GB, free: 7.074 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.7403, allocations: 4 kB / 0.9108 GB, free: 7.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/0.7423, allocations: 379.3 kB / 0.9111 GB, free: 6.699 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00502/0.7473, allocations: 1.315 MB / 0.9124 GB, free: 5.344 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001856/0.7475, allocations: 39.97 kB / 0.9124 GB, free: 5.305 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0284/0.7759, allocations: 25.51 MB / 0.9373 GB, free: 9.973 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/0.776, allocations: 7.938 kB / 0.9374 GB, free: 9.965 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/0.7886, allocations: 4.214 MB / 0.9415 GB, free: 5.652 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.79, allocations: 463.8 kB / 0.9419 GB, free: 5.18 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/0.7905, allocations: 27.98 kB / 0.9419 GB, free: 5.152 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/0.793, allocations: 303.5 kB / 0.9422 GB, free: 4.855 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005173/0.7935, allocations: 132.6 kB / 0.9424 GB, free: 4.727 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.7936, allocations: 48.16 kB / 0.9424 GB, free: 4.68 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001266/0.7949, allocations: 0.7526 MB / 0.9431 GB, free: 3.926 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7949, allocations: 0 / 0.9431 GB, free: 3.926 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002112/0.797, allocations: 0.5703 MB / 0.9437 GB, free: 3.355 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01272/0.8098, allocations: 4.795 MB / 0.9484 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01263/0.8225, allocations: 5.154 MB / 0.9534 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.8225, allocations: 0 / 0.9534 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00793/0.8304, allocations: 3.491 MB / 0.9568 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.8331, allocations: 0.5587 MB / 0.9574 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04493/0.8781, allocations: 19.43 MB / 0.9763 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.8795, allocations: 1.47 MB / 0.9778 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001597/0.8811, allocations: 433.6 kB / 0.9782 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009957/0.8821, allocations: 0.6281 MB / 0.9788 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of SimCode: time 5.72e-07/0.8821, allocations: 0 / 0.9788 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/1.007, allocations: 51.7 MB / 1.029 GB, free: 11.49 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.24/19.24, allocations: 11.19 kB / 1.029 GB, free: 11.48 MB / 0.795 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_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_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1)