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.001223/0.001223, 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.001202/0.001202, allocations: 196.6 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.197/1.197, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001982/0.001982, allocations: 278.8 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8677/0.8677, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 106.3 kB / 0.5954 GB, free: 27.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1346, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008153/0.1428, allocations: 6.784 MB / 0.6869 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004552/0.1474, allocations: 3.067 MB / 0.6899 GB, free: 6.699 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000508/0.1479, allocations: 27.81 kB / 0.6899 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.1502, allocations: 0.9518 MB / 0.6909 GB, free: 5.719 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.1513, allocations: 0.4973 MB / 0.6914 GB, free: 5.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009381/0.1523, allocations: 451 kB / 0.6918 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001238/0.1535, allocations: 1.224 MB / 0.693 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008357/0.1544, allocations: 0.6584 MB / 0.6936 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005588/0.1549, allocations: 470.4 kB / 0.6941 GB, free: 2.426 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006912/0.1556, allocations: 0.5253 MB / 0.6946 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1558, allocations: 68 kB / 0.6947 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007067/0.1565, allocations: 371.3 kB / 0.695 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003097/0.1568, allocations: 315.1 kB / 0.6953 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005367/0.1573, allocations: 449.7 kB / 0.6957 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.1586, allocations: 1.211 MB / 0.6969 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1586, allocations: 4 kB / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1586, allocations: 0 / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.905e-05/0.1587, allocations: 0 / 0.6969 GB, free: 15.49 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.001855/0.1605, allocations: 1.161 MB / 0.6981 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1606, allocations: 12.03 kB / 0.6981 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.1607, allocations: 122.7 kB / 0.6982 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0015/0.1622, allocations: 239.5 kB / 0.6984 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007407/0.163, allocations: 0.5607 MB / 0.699 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.163, allocations: 53.66 kB / 0.699 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.1631, allocations: 64.36 kB / 0.6991 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.1645, allocations: 1.085 MB / 0.7001 GB, free: 12 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1645, allocations: 7.938 kB / 0.7001 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.1646, allocations: 27.98 kB / 0.7002 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.1647, allocations: 85.25 kB / 0.7002 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.1658, allocations: 0.7504 MB / 0.701 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004696/0.1705, allocations: 5.901 MB / 0.7067 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000909/0.1714, allocations: 0.5625 MB / 0.7073 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003952/0.1718, allocations: 324.9 kB / 0.7076 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.604e-05/0.1719, allocations: 4.438 kB / 0.7076 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.1719, allocations: 39 kB / 0.7076 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.783e-06/0.1719, allocations: 0 / 0.7076 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003499/0.1754, allocations: 1.986 MB / 0.7096 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.1755, allocations: 63.83 kB / 0.7096 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.176, allocations: 0.5626 MB / 0.7102 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.1761, allocations: 29.7 kB / 0.7102 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/0.1763, allocations: 418.9 kB / 0.7106 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.1764, allocations: 169.6 kB / 0.7108 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.1766, allocations: 138.5 kB / 0.7109 GB, free: 380 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1768, allocations: 374.9 kB / 0.7113 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.1771, allocations: 273.8 kB / 0.7115 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.1776, allocations: 493 kB / 0.712 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009367/0.1786, allocations: 0.8132 MB / 0.7128 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1786, allocations: 4 kB / 0.7128 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001678/0.1803, allocations: 1.086 MB / 0.7139 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1803, allocations: 8 kB / 0.7139 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1803, allocations: 4 kB / 0.7139 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000809/0.1811, allocations: 280 kB / 0.7141 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.1816, allocations: 131.7 kB / 0.7143 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006358/0.188, allocations: 7.135 MB / 0.7212 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000497/0.1885, allocations: 40.03 kB / 0.7213 GB, free: 4.965 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.1885, allocations: 32 kB / 0.7213 GB, free: 4.934 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.0003032/0.1888, allocations: 259.5 kB / 0.7216 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1889, allocations: 71.16 kB / 0.7216 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.1904, allocations: 0.8886 MB / 0.7225 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1904, allocations: 11.92 kB / 0.7225 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1904, allocations: 4 kB / 0.7225 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1904, allocations: 0 / 0.7225 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.1928, allocations: 1.724 MB / 0.7242 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1928, allocations: 4 kB / 0.7242 GB, free: 1.859 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.1931, allocations: 68.02 kB / 0.7243 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006752/0.1938, allocations: 263.2 kB / 0.7245 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/0.1938, allocations: 8 kB / 0.7245 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005802/0.1996, allocations: 7.134 MB / 0.7315 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1996, allocations: 8.016 kB / 0.7315 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.201, allocations: 0.9834 MB / 0.7324 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.2012, allocations: 192.2 kB / 0.7326 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.209e-05/0.2013, allocations: 12 kB / 0.7326 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003477/0.2017, allocations: 31.91 kB / 0.7327 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.2018, allocations: 43.94 kB / 0.7327 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.2018, allocations: 16 kB / 0.7327 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003891/0.2022, allocations: 387.1 kB / 0.7331 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.475e-06/0.2022, allocations: 0 / 0.7331 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006716/0.2029, allocations: 231.9 kB / 0.7333 GB, free: 7.875 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.001628/0.2045, allocations: 1.536 MB / 0.7348 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001877/0.2064, allocations: 1.342 MB / 0.7361 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.2064, allocations: 4 kB / 0.7361 GB, free: 4.879 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.2076, allocations: 0.8858 MB / 0.737 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009157/0.2085, allocations: 224.4 kB / 0.7372 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.2163, allocations: 6.571 MB / 0.7436 GB, free: 12.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.2168, allocations: 1.009 MB / 0.7446 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003795/0.2172, allocations: 126 kB / 0.7447 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.2175, allocations: 251.4 kB / 0.745 GB, free: 11.43 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.2175, allocations: 3.938 kB / 0.745 GB, free: 11.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3903/0.6078, allocations: 17.25 MB / 0.7618 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.96/10.57, allocations: 15.09 kB / 0.7618 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 & /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)