Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.005781/0.005781, allocations: 97.78 kB / 15.73 MB, free: 5.961 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.001933/0.001933, allocations: 195.5 kB / 16.67 MB, free: 5.883 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 297.9 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 1.035/1.035, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004218/0.004218, allocations: 99.83 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4417/0.446, allocations: 86.97 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01875/0.4648, allocations: 14.77 MB / 0.7803 GB, free: 5.051 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01644/0.4812, allocations: 10.35 MB / 0.7904 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001509/0.4828, allocations: 51.69 kB / 0.7905 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004546/0.4874, allocations: 1.685 MB / 0.7921 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005624/0.493, allocations: 1.824 MB / 0.7939 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002237/0.4952, allocations: 0.7545 MB / 0.7947 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004743/0.5, allocations: 2.75 MB / 0.7973 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.5021, allocations: 1.43 MB / 0.7987 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/0.5046, allocations: 1.492 MB / 0.8002 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.5065, allocations: 1.16 MB / 0.8013 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.5067, allocations: 160 kB / 0.8015 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.5084, allocations: 0.7877 MB / 0.8023 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000696/0.5091, allocations: 0.6037 MB / 0.8028 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.5104, allocations: 0.9639 MB / 0.8038 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.5144, allocations: 2.775 MB / 0.8065 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.5144, allocations: 0 / 0.8065 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.194e-06/0.5144, allocations: 0 / 0.8065 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.923e-05/0.5145, allocations: 4 kB / 0.8065 GB, free: 10.15 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.004536/0.519, allocations: 2.234 MB / 0.8087 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5191, allocations: 8.031 kB / 0.8087 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002568/0.5194, allocations: 186.4 kB / 0.8089 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01212/0.5315, allocations: 2.125 MB / 0.8109 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/0.5347, allocations: 1.312 MB / 0.8122 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.384e-05/0.5348, allocations: 86.62 kB / 0.8123 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002748/0.5351, allocations: 127.9 kB / 0.8124 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00603/0.5411, allocations: 2.667 MB / 0.815 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.5412, allocations: 7.938 kB / 0.815 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001671/0.5414, allocations: 51.98 kB / 0.8151 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006813/0.542, allocations: 190.1 kB / 0.8153 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008108/0.5502, allocations: 2.795 MB / 0.818 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01678/0.567, allocations: 10.48 MB / 0.8282 GB, free: 3.016 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006964/0.574, allocations: 2.332 MB / 0.8305 GB, free: 0.6602 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003272/0.5773, allocations: 1.28 MB / 0.8318 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.85e-05/0.5774, allocations: 9 kB / 0.8318 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.5774, allocations: 47.5 kB / 0.8318 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=89): time 2.755e-06/0.5774, allocations: 0 / 0.8318 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of matching and sorting (n=153): time 0.06117/0.6386, allocations: 16.53 MB / 0.848 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.6387, allocations: 68.66 kB / 0.848 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.6405, allocations: 1.172 MB / 0.8492 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.6406, allocations: 49.7 kB / 0.8492 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.6413, allocations: 0.7607 MB / 0.85 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006017/0.6419, allocations: 0.5344 MB / 0.8505 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005923/0.6425, allocations: 291.5 kB / 0.8508 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6427, allocations: 309.1 kB / 0.8511 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003736/0.6464, allocations: 1.51 MB / 0.8525 GB, free: 9.906 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003933/0.6504, allocations: 1.776 MB / 0.8543 GB, free: 8.035 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007681/0.658, allocations: 3.365 MB / 0.8575 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6581, allocations: 0 / 0.8575 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01382/0.6719, allocations: 5.289 MB / 0.8627 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.6719, allocations: 12.86 kB / 0.8627 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.672, allocations: 8 kB / 0.8627 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006864/0.6788, allocations: 1.877 MB / 0.8646 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.6808, allocations: 415.3 kB / 0.865 GB, free: 12.92 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03208/0.7129, allocations: 24.16 MB / 0.8886 GB, free: 3.645 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002744/0.7157, allocations: 303.6 kB / 0.8888 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.7159, allocations: 67.97 kB / 0.8889 GB, free: 3.281 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000861/0.7168, allocations: 466.1 kB / 0.8894 GB, free: 2.816 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003265/0.7171, allocations: 186.9 kB / 0.8895 GB, free: 2.633 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/0.731, allocations: 5.316 MB / 0.8947 GB, free: 13.27 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.731, allocations: 12 kB / 0.8947 GB, free: 13.25 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.728e-05/0.731, allocations: 24 kB / 0.8948 GB, free: 13.23 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.7311, allocations: 7.969 kB / 0.8948 GB, free: 13.22 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/0.7478, allocations: 7.419 MB / 0.902 GB, free: 5.684 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.7478, allocations: 4 kB / 0.902 GB, free: 5.68 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.7495, allocations: 351.4 kB / 0.9024 GB, free: 5.336 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005995/0.7555, allocations: 1.711 MB / 0.904 GB, free: 3.605 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/0.7557, allocations: 47.97 kB / 0.9041 GB, free: 3.559 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03017/0.7859, allocations: 23.33 MB / 0.9269 GB, free: 11.12 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.168e-05/0.786, allocations: 7.969 kB / 0.9269 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/0.7991, allocations: 4.904 MB / 0.9316 GB, free: 6.121 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000995/0.8001, allocations: 499.7 kB / 0.9321 GB, free: 5.613 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/0.8004, allocations: 39.89 kB / 0.9322 GB, free: 5.574 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/0.8026, allocations: 315.5 kB / 0.9325 GB, free: 5.266 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/0.8032, allocations: 157 kB / 0.9326 GB, free: 5.109 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.8033, allocations: 51.97 kB / 0.9327 GB, free: 5.059 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.00113/0.8045, allocations: 0.7899 MB / 0.9334 GB, free: 4.27 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8045, allocations: 0 / 0.9334 GB, free: 4.27 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001856/0.8063, allocations: 0.6562 MB / 0.9341 GB, free: 3.613 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01458/0.8209, allocations: 5.481 MB / 0.9394 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01271/0.8337, allocations: 5.155 MB / 0.9445 GB, free: 8.781 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.8337, allocations: 0 / 0.9445 GB, free: 8.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00775/0.8415, allocations: 3.37 MB / 0.9478 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.844, allocations: 0.5574 MB / 0.9483 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4461/1.29, allocations: 21.91 MB / 0.9697 GB, free: 184.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/1.292, allocations: 1.564 MB / 0.9712 GB, free: 184.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001449/1.293, allocations: 388.3 kB / 0.9716 GB, free: 184 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007952/1.294, allocations: 0.662 MB / 0.9722 GB, free: 184 MB / 0.7325 GB Notification: Performance of SimCode: time 6.82e-07/1.294, allocations: 0 / 0.9722 GB, free: 184 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/1.395, allocations: 58.78 MB / 1.03 GB, free: 142.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/21.65, allocations: 17.53 kB / 1.03 GB, free: 142.5 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_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_ACLineMedium.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1)