Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.001662/0.001662, allocations: 110.7 kB / 16.41 MB, free: 5.984 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.001784/0.001784, allocations: 191 kB / 17.34 MB, free: 5.602 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.817/0.817, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 64.28 kB / 0.5735 GB, free: 27.15 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1434, allocations: 78.86 MB / 0.6506 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007805/0.1512, allocations: 5.525 MB / 0.6559 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004609/0.1558, allocations: 2.646 MB / 0.6585 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003914/0.1563, allocations: 19.88 kB / 0.6586 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.1582, allocations: 0.673 MB / 0.6592 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009886/0.1592, allocations: 409.7 kB / 0.6596 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1603, allocations: 416.5 kB / 0.66 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001233/0.1615, allocations: 0.959 MB / 0.6609 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000716/0.1622, allocations: 482.7 kB / 0.6614 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000596/0.1628, allocations: 370.5 kB / 0.6617 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005659/0.1634, allocations: 406.4 kB / 0.6621 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.601e-05/0.1635, allocations: 48 kB / 0.6622 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006874/0.1642, allocations: 367.2 kB / 0.6625 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.1645, allocations: 239.4 kB / 0.6628 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.1649, allocations: 350.2 kB / 0.6631 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.1662, allocations: 0.9766 MB / 0.664 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1662, allocations: 0 / 0.664 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.1662, allocations: 4 kB / 0.664 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.638e-05/0.1662, allocations: 0 / 0.664 GB, free: 5.734 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00175/0.168, allocations: 1.004 MB / 0.665 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.168, allocations: 8.031 kB / 0.665 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.1682, allocations: 102.7 kB / 0.6651 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001471/0.1696, allocations: 196.3 kB / 0.6653 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.1705, allocations: 0.5262 MB / 0.6658 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.1706, allocations: 41.36 kB / 0.6659 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.1708, allocations: 56.5 kB / 0.6659 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1722, allocations: 0.8277 MB / 0.6667 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.1722, allocations: 7.984 kB / 0.6667 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.546e-05/0.1723, allocations: 23.98 kB / 0.6668 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001945/0.1725, allocations: 64.95 kB / 0.6668 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009793/0.1735, allocations: 0.5696 MB / 0.6674 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004968/0.1784, allocations: 4.585 MB / 0.6719 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.179, allocations: 287.3 kB / 0.6721 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.1793, allocations: 229.3 kB / 0.6724 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.1794, allocations: 4.281 kB / 0.6724 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.1794, allocations: 38.78 kB / 0.6724 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.1794, allocations: 4 kB / 0.6724 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.005955/0.1854, allocations: 2.643 MB / 0.675 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.1854, allocations: 55.41 kB / 0.675 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005399/0.186, allocations: 470 kB / 0.6755 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.186, allocations: 29.7 kB / 0.6755 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.1863, allocations: 340.6 kB / 0.6758 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.1864, allocations: 158.7 kB / 0.676 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.1866, allocations: 106.2 kB / 0.6761 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1868, allocations: 362.8 kB / 0.6764 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003873/0.1872, allocations: 241 kB / 0.6767 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.1877, allocations: 406.3 kB / 0.6771 GB, free: 7.602 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009418/0.1887, allocations: 0.6779 MB / 0.6777 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1887, allocations: 0 / 0.6777 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001797/0.1905, allocations: 0.925 MB / 0.6786 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1905, allocations: 8 kB / 0.6786 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1905, allocations: 4 kB / 0.6786 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008734/0.1914, allocations: 227 kB / 0.6788 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/0.1919, allocations: 115.8 kB / 0.679 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005857/0.1978, allocations: 5.345 MB / 0.6842 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/0.1983, allocations: 27.97 kB / 0.6842 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.1984, allocations: 24 kB / 0.6842 GB, free: 15.74 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0003504/0.1987, allocations: 229.7 kB / 0.6844 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.1989, allocations: 71.55 kB / 0.6845 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.2005, allocations: 0.7733 MB / 0.6853 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2005, allocations: 4 kB / 0.6853 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/0.2006, allocations: 4 kB / 0.6853 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.2006, allocations: 3.984 kB / 0.6853 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.2032, allocations: 1.495 MB / 0.6867 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.2033, allocations: 4 kB / 0.6867 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.2037, allocations: 71.83 kB / 0.6868 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007762/0.2045, allocations: 202.6 kB / 0.687 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.2045, allocations: 11.98 kB / 0.687 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/0.2104, allocations: 5.277 MB / 0.6922 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2105, allocations: 0 / 0.6922 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.2125, allocations: 1.139 MB / 0.6933 GB, free: 5.875 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.2128, allocations: 176.6 kB / 0.6935 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.2129, allocations: 16 kB / 0.6935 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003388/0.2132, allocations: 19.97 kB / 0.6935 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.2133, allocations: 35.95 kB / 0.6935 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.2134, allocations: 12 kB / 0.6935 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003981/0.2138, allocations: 318.9 kB / 0.6938 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2138, allocations: 0 / 0.6938 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006651/0.2145, allocations: 168 kB / 0.694 GB, free: 5.129 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002262/0.2167, allocations: 1.713 MB / 0.6957 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001773/0.2185, allocations: 1.008 MB / 0.6967 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2185, allocations: 0 / 0.6967 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.2196, allocations: 0.6876 MB / 0.6973 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009315/0.2205, allocations: 183.7 kB / 0.6975 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008185/0.2287, allocations: 5.655 MB / 0.703 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.2294, allocations: 0.9455 MB / 0.7039 GB, free: 10.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003545/0.2297, allocations: 109 kB / 0.704 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.2301, allocations: 215.4 kB / 0.7043 GB, free: 10.17 MB / 0.545 GB Notification: Performance of SimCode: time 5.11e-07/0.2301, allocations: 0 / 0.7043 GB, free: 10.17 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05296/0.283, allocations: 14.19 MB / 0.7181 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.29, allocations: 9.797 kB / 0.7181 GB, free: 12.25 MB / 0.5606 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)