Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.007742/0.007742, allocations: 101 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.001975/0.001975, allocations: 192.3 kB / 16.67 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002476, allocations: 285.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.3 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 99.84 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4036, allocations: 86.97 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04271/0.4463, allocations: 35.11 MB / 0.8002 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01829/0.4646, allocations: 9.937 MB / 0.8099 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003973/0.4686, allocations: 147.2 kB / 0.8101 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01116/0.4798, allocations: 3.8 MB / 0.8138 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007816/0.4877, allocations: 2.036 MB / 0.8158 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005632/0.4934, allocations: 1.964 MB / 0.8177 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01132/0.5047, allocations: 7.975 MB / 0.8255 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01397/0.5187, allocations: 9.522 MB / 0.8348 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006767/0.5255, allocations: 3.385 MB / 0.8381 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007015/0.5326, allocations: 3.727 MB / 0.8417 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002285/0.5349, allocations: 0.6797 MB / 0.8424 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004634/0.5396, allocations: 1.451 MB / 0.8438 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.003991/0.5436, allocations: 2.616 MB / 0.8463 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.006193/0.5498, allocations: 3.104 MB / 0.8494 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.5642, allocations: 10.41 MB / 0.8595 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.5643, allocations: 0 / 0.8595 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.344e-06/0.5643, allocations: 0 / 0.8595 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0003873/0.5647, allocations: 0 / 0.8595 GB, free: 3.625 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01392/0.5786, allocations: 5.534 MB / 0.8649 GB, free: 14.01 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.5787, allocations: 8.031 kB / 0.8649 GB, free: 14 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/0.5804, allocations: 0.7062 MB / 0.8656 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005117/0.5855, allocations: 0.9928 MB / 0.8666 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006603/0.5921, allocations: 3.196 MB / 0.8697 GB, free: 9.043 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/0.5925, allocations: 353.9 kB / 0.8701 GB, free: 8.695 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.5939, allocations: 472.3 kB / 0.8705 GB, free: 8.234 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.6094, allocations: 7.914 MB / 0.8782 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/0.6096, allocations: 23.77 kB / 0.8783 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005754/0.6102, allocations: 208 kB / 0.8785 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005372/0.6107, allocations: 365 kB / 0.8788 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01168/0.6224, allocations: 5.937 MB / 0.8846 GB, free: 9.418 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04197/0.6644, allocations: 36 MB / 0.9198 GB, free: 2.184 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/0.6683, allocations: 2.138 MB / 0.9219 GB, free: 32 kB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.6705, allocations: 1.478 MB / 0.9233 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-05/0.6706, allocations: 21.25 kB / 0.9233 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.599e-05/0.6707, allocations: 59.81 kB / 0.9234 GB, free: 14.47 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=157): time 2.79e-05/0.6707, allocations: 0 / 0.9234 GB, free: 14.47 MB / 0.7012 GB Notification: Performance of matching and sorting (n=160): time 0.01509/0.6858, allocations: 7.602 MB / 0.9308 GB, free: 6.598 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.6859, allocations: 72.7 kB / 0.9309 GB, free: 6.516 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.6887, allocations: 1.861 MB / 0.9327 GB, free: 4.629 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002673/0.689, allocations: 49.7 kB / 0.9327 GB, free: 4.574 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001681/0.6907, allocations: 2.192 MB / 0.9349 GB, free: 2.363 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007296/0.6914, allocations: 0.581 MB / 0.9354 GB, free: 1.777 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006743/0.6921, allocations: 408 kB / 0.9358 GB, free: 1.371 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.6923, allocations: 301.1 kB / 0.9361 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.694, allocations: 1.066 MB / 0.9372 GB, free: 4 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002306/0.6963, allocations: 1.764 MB / 0.9389 GB, free: 13.92 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004138/0.7004, allocations: 3.049 MB / 0.9419 GB, free: 10.55 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.7005, allocations: 8 kB / 0.9419 GB, free: 10.55 MB / 0.7169 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007004/0.7075, allocations: 3.933 MB / 0.9457 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.7075, allocations: 14.5 kB / 0.9457 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-05/0.7076, allocations: 24 kB / 0.9458 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002528/0.7101, allocations: 0.9356 MB / 0.9467 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.7117, allocations: 419.3 kB / 0.9471 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3958/1.108, allocations: 22.77 MB / 0.9693 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002366/1.11, allocations: 123.7 kB / 0.9694 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003617/1.11, allocations: 94.61 kB / 0.9695 GB, free: 178.3 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003518/1.114, allocations: 1.646 MB / 0.9711 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006299/1.115, allocations: 268.8 kB / 0.9714 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/1.12, allocations: 3.264 MB / 0.9746 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/1.12, allocations: 17.03 kB / 0.9746 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/1.12, allocations: 10 kB / 0.9746 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/1.12, allocations: 8.344 kB / 0.9746 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/1.132, allocations: 7.554 MB / 0.982 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/1.132, allocations: 7.938 kB / 0.982 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009374/1.133, allocations: 217.8 kB / 0.9822 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002078/1.135, allocations: 0.8993 MB / 0.9831 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/1.135, allocations: 31.66 kB / 0.9831 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/1.152, allocations: 22.74 MB / 1.005 GB, free: 154.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.152, allocations: 7.688 kB / 1.005 GB, free: 154.6 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/1.156, allocations: 3.399 MB / 1.009 GB, free: 153.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.157, allocations: 0.5417 MB / 1.009 GB, free: 152.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/1.158, allocations: 31.12 kB / 1.009 GB, free: 152.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/1.159, allocations: 95.97 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003846/1.159, allocations: 136.6 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.511e-05/1.159, allocations: 43.44 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001398/1.161, allocations: 1.226 MB / 1.011 GB, free: 152.2 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.161, allocations: 0 / 1.011 GB, free: 152.2 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002407/1.163, allocations: 0.9098 MB / 1.012 GB, free: 151.6 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004258/1.167, allocations: 4.009 MB / 1.015 GB, free: 147.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005258/1.173, allocations: 4.44 MB / 1.02 GB, free: 143 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/1.173, allocations: 5 kB / 1.02 GB, free: 143 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003288/1.176, allocations: 2.991 MB / 1.023 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/1.18, allocations: 0.8251 MB / 1.024 GB, free: 139 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03357/1.213, allocations: 25.19 MB / 1.048 GB, free: 112.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/1.216, allocations: 3.209 MB / 1.051 GB, free: 109.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001638/1.218, allocations: 0.5293 MB / 1.052 GB, free: 109 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.219, allocations: 1.655 MB / 1.053 GB, free: 107.4 MB / 0.7325 GB Notification: Performance of SimCode: time 1.603e-06/1.219, allocations: 0 / 1.053 GB, free: 107.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/1.349, allocations: 70.27 MB / 1.122 GB, free: 38.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/15.82, allocations: 11.36 kB / 1.122 GB, free: 38 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)