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.00097/0.00097, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.0009784/0.0009784, allocations: 193.1 kB / 16.14 MB, free: 6.727 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.237/1.237, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001943/0.001943, allocations: 283 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9539/0.9539, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 90.17 kB / 0.5946 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1406, allocations: 86.98 MB / 0.6796 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007448/0.1481, allocations: 6.798 MB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00435/0.1525, allocations: 3.073 MB / 0.6892 GB, free: 7.211 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003677/0.1529, allocations: 27.81 kB / 0.6892 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.155, allocations: 0.8903 MB / 0.6901 GB, free: 6.293 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009286/0.1559, allocations: 481.6 kB / 0.6905 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008853/0.1568, allocations: 406.4 kB / 0.6909 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.1583, allocations: 1.587 MB / 0.6925 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009747/0.1593, allocations: 0.6482 MB / 0.6931 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006748/0.16, allocations: 418.3 kB / 0.6935 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007456/0.1607, allocations: 0.5331 MB / 0.694 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.1608, allocations: 48 kB / 0.6941 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007486/0.1616, allocations: 451.1 kB / 0.6945 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.1618, allocations: 283.2 kB / 0.6948 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003785/0.1622, allocations: 433.7 kB / 0.6952 GB, free: 1.047 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009929/0.1632, allocations: 1.203 MB / 0.6964 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1633, allocations: 0 / 0.6964 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.12e-07/0.1633, allocations: 0 / 0.6964 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.1633, allocations: 0 / 0.6964 GB, free: 15.84 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.001667/0.1649, allocations: 1.172 MB / 0.6975 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.165, allocations: 11.97 kB / 0.6975 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.1651, allocations: 126.7 kB / 0.6976 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00144/0.1666, allocations: 231.6 kB / 0.6979 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007117/0.1673, allocations: 0.5646 MB / 0.6984 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.1673, allocations: 49.67 kB / 0.6985 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.044e-05/0.1674, allocations: 60.36 kB / 0.6985 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1688, allocations: 1.089 MB / 0.6996 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1688, allocations: 11.92 kB / 0.6996 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.47e-05/0.1689, allocations: 27.98 kB / 0.6996 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.169, allocations: 85.25 kB / 0.6997 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.17, allocations: 0.7543 MB / 0.7004 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.1747, allocations: 5.893 MB / 0.7062 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009081/0.1756, allocations: 0.5555 MB / 0.7067 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004058/0.1761, allocations: 326 kB / 0.7071 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.1761, allocations: 4.438 kB / 0.7071 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1761, allocations: 39 kB / 0.7071 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.824e-06/0.1762, allocations: 0 / 0.7071 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003558/0.1797, allocations: 1.986 MB / 0.709 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.1798, allocations: 59.84 kB / 0.7091 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.1803, allocations: 0.5626 MB / 0.7096 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1804, allocations: 37.64 kB / 0.7097 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.1806, allocations: 419 kB / 0.7101 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.1808, allocations: 173.5 kB / 0.7102 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.1809, allocations: 126.5 kB / 0.7104 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1811, allocations: 378.7 kB / 0.7107 GB, free: 344 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/0.1815, allocations: 273.8 kB / 0.711 GB, free: 72 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.182, allocations: 497 kB / 0.7115 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009146/0.1829, allocations: 0.8094 MB / 0.7123 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1829, allocations: 8 kB / 0.7123 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001665/0.1846, allocations: 1.087 MB / 0.7133 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1846, allocations: 8.188 kB / 0.7133 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1846, allocations: 8 kB / 0.7133 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007931/0.1854, allocations: 279.1 kB / 0.7136 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004414/0.1859, allocations: 123.8 kB / 0.7137 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005558/0.1915, allocations: 6.591 MB / 0.7202 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005257/0.192, allocations: 35.97 kB / 0.7202 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.424e-05/0.1921, allocations: 31.94 kB / 0.7202 GB, free: 5.852 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.0003341/0.1924, allocations: 270.8 kB / 0.7205 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.915e-05/0.1925, allocations: 71.16 kB / 0.7205 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.1939, allocations: 0.8847 MB / 0.7214 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.194, allocations: 4 kB / 0.7214 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.194, allocations: 8 kB / 0.7214 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.194, allocations: 3.984 kB / 0.7214 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.1963, allocations: 1.724 MB / 0.7231 GB, free: 2.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1964, allocations: 0 / 0.7231 GB, free: 2.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.1966, allocations: 59.89 kB / 0.7232 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007131/0.1973, allocations: 275.3 kB / 0.7234 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.1974, allocations: 12.06 kB / 0.7234 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005412/0.2028, allocations: 6.583 MB / 0.7299 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2028, allocations: 0 / 0.7299 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2042, allocations: 0.9951 MB / 0.7308 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.2045, allocations: 196.2 kB / 0.731 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.697e-05/0.2045, allocations: 11.94 kB / 0.731 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.2049, allocations: 27.97 kB / 0.7311 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.205, allocations: 43.94 kB / 0.7311 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.205, allocations: 16 kB / 0.7311 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000387/0.2054, allocations: 395 kB / 0.7315 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.164e-06/0.2054, allocations: 0 / 0.7315 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007217/0.2061, allocations: 223.9 kB / 0.7317 GB, free: 9.355 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.001623/0.2078, allocations: 1.544 MB / 0.7332 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00174/0.2095, allocations: 1.268 MB / 0.7345 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2095, allocations: 4.125 kB / 0.7345 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.2107, allocations: 0.8896 MB / 0.7353 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009312/0.2116, allocations: 205 kB / 0.7355 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007837/0.2194, allocations: 6.847 MB / 0.7422 GB, free: 14.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.22, allocations: 1.016 MB / 0.7432 GB, free: 13.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003824/0.2204, allocations: 126 kB / 0.7433 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.2207, allocations: 251.4 kB / 0.7436 GB, free: 12.69 MB / 0.545 GB Notification: Performance of SimCode: time 5.11e-07/0.2207, allocations: 0 / 0.7436 GB, free: 12.69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.2489, allocations: 16.73 MB / 0.7599 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001878/0.2491, allocations: 255.7 kB / 0.7601 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.183, allocations: 2.656 kB / 0.7601 GB, free: 12.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)