Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.001514/0.001514, 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.001485/0.001485, allocations: 195.7 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002436/0.002436, allocations: 291 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9875/0.9875, allocations: 169.2 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002836/0.002836, allocations: 100.6 kB / 0.5954 GB, free: 27.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1479, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008858/0.1568, allocations: 6.795 MB / 0.6869 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004984/0.1618, allocations: 3.06 MB / 0.6899 GB, free: 6.711 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004297/0.1623, allocations: 27.81 kB / 0.6899 GB, free: 6.684 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.1646, allocations: 0.9555 MB / 0.6909 GB, free: 5.727 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.1656, allocations: 0.4973 MB / 0.6914 GB, free: 5.227 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009672/0.1666, allocations: 443.8 kB / 0.6918 GB, free: 4.793 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.1678, allocations: 1.224 MB / 0.693 GB, free: 3.566 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009066/0.1687, allocations: 0.6622 MB / 0.6936 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005726/0.1693, allocations: 474.3 kB / 0.6941 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.17, allocations: 0.5176 MB / 0.6946 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1701, allocations: 68 kB / 0.6947 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006753/0.1708, allocations: 379.2 kB / 0.695 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003034/0.1711, allocations: 323.1 kB / 0.6953 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004339/0.1715, allocations: 441.8 kB / 0.6957 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.1728, allocations: 1.211 MB / 0.6969 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1728, allocations: 0 / 0.6969 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.689e-06/0.1728, allocations: 4 kB / 0.6969 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.1728, allocations: 0 / 0.6969 GB, free: 15.5 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001878/0.1747, allocations: 1.168 MB / 0.6981 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1747, allocations: 11.98 kB / 0.6981 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001507/0.1749, allocations: 118.7 kB / 0.6982 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001509/0.1764, allocations: 235.6 kB / 0.6984 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008207/0.1773, allocations: 0.5646 MB / 0.699 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.1773, allocations: 45.67 kB / 0.699 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.1774, allocations: 68.36 kB / 0.6991 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.1789, allocations: 1.085 MB / 0.7001 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.1789, allocations: 7.938 kB / 0.7001 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/0.179, allocations: 31.98 kB / 0.7002 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.1792, allocations: 81.25 kB / 0.7003 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1803, allocations: 0.7504 MB / 0.701 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.1857, allocations: 5.901 MB / 0.7068 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1867, allocations: 0.5554 MB / 0.7073 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004523/0.1872, allocations: 332.5 kB / 0.7076 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.1872, allocations: 4.438 kB / 0.7076 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.1873, allocations: 39 kB / 0.7077 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.374e-06/0.1873, allocations: 0 / 0.7077 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003816/0.1911, allocations: 1.986 MB / 0.7096 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.1911, allocations: 59.78 kB / 0.7096 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006226/0.1918, allocations: 0.5626 MB / 0.7102 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.1918, allocations: 33.7 kB / 0.7102 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.1921, allocations: 422.9 kB / 0.7106 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.1923, allocations: 169.6 kB / 0.7108 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/0.1924, allocations: 126.5 kB / 0.7109 GB, free: 400 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1926, allocations: 382.7 kB / 0.7113 GB, free: 8 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004172/0.193, allocations: 277.8 kB / 0.7115 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.1936, allocations: 489 kB / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.1946, allocations: 0.8094 MB / 0.7128 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.1947, allocations: 4 kB / 0.7128 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001785/0.1964, allocations: 1.09 MB / 0.7139 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1965, allocations: 8 kB / 0.7139 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1965, allocations: 8 kB / 0.7139 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000816/0.1973, allocations: 279.8 kB / 0.7142 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.1978, allocations: 127.7 kB / 0.7143 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006834/0.2046, allocations: 7.135 MB / 0.7212 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.2052, allocations: 43.89 kB / 0.7213 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.426e-05/0.2053, allocations: 28 kB / 0.7213 GB, free: 4.949 MB / 0.5137 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003414/0.2056, allocations: 254.9 kB / 0.7216 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.2057, allocations: 75.16 kB / 0.7216 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.2073, allocations: 0.8886 MB / 0.7225 GB, free: 3.707 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2074, allocations: 7.938 kB / 0.7225 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2074, allocations: 4 kB / 0.7225 GB, free: 3.695 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2074, allocations: 3.984 kB / 0.7225 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.21, allocations: 1.721 MB / 0.7242 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.21, allocations: 8.125 kB / 0.7242 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.2103, allocations: 63.89 kB / 0.7243 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007424/0.211, allocations: 267.4 kB / 0.7245 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.2111, allocations: 8 kB / 0.7245 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/0.2179, allocations: 7.135 MB / 0.7315 GB, free: 9.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2179, allocations: 4.062 kB / 0.7315 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.2195, allocations: 0.9834 MB / 0.7325 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.2198, allocations: 192.2 kB / 0.7326 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.2199, allocations: 15.94 kB / 0.7326 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.2203, allocations: 31.95 kB / 0.7327 GB, free: 8.551 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.2204, allocations: 43.89 kB / 0.7327 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.2204, allocations: 12 kB / 0.7327 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004401/0.2209, allocations: 395.1 kB / 0.7331 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2209, allocations: 0 / 0.7331 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007807/0.2217, allocations: 224 kB / 0.7333 GB, free: 7.895 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.001824/0.2235, allocations: 1.54 MB / 0.7348 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002127/0.2256, allocations: 1.338 MB / 0.7361 GB, free: 4.902 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2257, allocations: 3.938 kB / 0.7361 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.2269, allocations: 0.8893 MB / 0.737 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.2279, allocations: 232.2 kB / 0.7372 GB, free: 3.742 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008564/0.2365, allocations: 6.56 MB / 0.7436 GB, free: 12.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.2372, allocations: 1.013 MB / 0.7446 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004096/0.2376, allocations: 126 kB / 0.7447 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003112/0.2379, allocations: 255.3 kB / 0.745 GB, free: 11.43 MB / 0.545 GB Notification: Performance of SimCode: time 5.91e-07/0.2379, allocations: 7.938 kB / 0.745 GB, free: 11.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05509/0.293, allocations: 17.26 MB / 0.7618 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.614/9.907, allocations: 11.17 kB / 0.7619 GB, free: 10.49 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)