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: translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001665/0.001665, allocations: 196.2 kB / 16.14 MB, free: 6.707 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.295/1.295, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 267.1 kB / 290.2 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9252/0.9252, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 94.48 kB / 0.5945 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1462, allocations: 86.99 MB / 0.6795 GB, free: 1.199 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007843/0.1541, allocations: 6.788 MB / 0.6861 GB, free: 10.4 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004535/0.1587, allocations: 3.079 MB / 0.6891 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005663/0.1593, allocations: 27.81 kB / 0.6891 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.1615, allocations: 0.8827 MB / 0.69 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1626, allocations: 481.7 kB / 0.6904 GB, free: 5.934 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000906/0.1635, allocations: 407.2 kB / 0.6908 GB, free: 5.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.1648, allocations: 1.583 MB / 0.6924 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008403/0.1657, allocations: 0.6482 MB / 0.693 GB, free: 3.297 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000487/0.1662, allocations: 418.3 kB / 0.6934 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/0.1668, allocations: 0.5369 MB / 0.6939 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.372e-05/0.1669, allocations: 51.94 kB / 0.694 GB, free: 2.297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007632/0.1676, allocations: 455.1 kB / 0.6944 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002622/0.1679, allocations: 283.2 kB / 0.6947 GB, free: 1.574 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004304/0.1683, allocations: 433.7 kB / 0.6951 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.1696, allocations: 1.199 MB / 0.6963 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1696, allocations: 4 kB / 0.6963 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1696, allocations: 0 / 0.6963 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.1696, allocations: 0 / 0.6963 GB, free: 15.94 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.001951/0.1716, allocations: 1.17 MB / 0.6974 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1716, allocations: 12.03 kB / 0.6974 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.1731, allocations: 239.6 kB / 0.6977 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007543/0.1739, allocations: 0.5529 MB / 0.6982 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.174, allocations: 53.67 kB / 0.6982 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.532e-05/0.1741, allocations: 60.36 kB / 0.6983 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.1755, allocations: 1.097 MB / 0.6994 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.1755, allocations: 0 / 0.6994 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-05/0.1756, allocations: 35.92 kB / 0.6994 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000145/0.1757, allocations: 85.25 kB / 0.6995 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.1768, allocations: 0.7504 MB / 0.7002 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.1818, allocations: 5.893 MB / 0.706 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009356/0.1827, allocations: 0.5536 MB / 0.7065 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004094/0.1832, allocations: 329.4 kB / 0.7068 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.1832, allocations: 4.438 kB / 0.7068 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.1832, allocations: 43 kB / 0.7069 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.054e-06/0.1832, allocations: 0 / 0.7069 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003589/0.1868, allocations: 1.986 MB / 0.7088 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.1869, allocations: 59.84 kB / 0.7089 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.1875, allocations: 0.5587 MB / 0.7094 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.1875, allocations: 33.7 kB / 0.7094 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.1877, allocations: 418.9 kB / 0.7098 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.1879, allocations: 173.6 kB / 0.71 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.1881, allocations: 126.5 kB / 0.7101 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1882, allocations: 378.7 kB / 0.7105 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.1886, allocations: 269.8 kB / 0.7108 GB, free: 328 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005147/0.1891, allocations: 497.1 kB / 0.7112 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009698/0.1901, allocations: 0.8171 MB / 0.712 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1901, allocations: 0 / 0.712 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00172/0.1918, allocations: 1.091 MB / 0.7131 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1919, allocations: 8 kB / 0.7131 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1919, allocations: 8 kB / 0.7131 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008218/0.1927, allocations: 275.5 kB / 0.7134 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.1932, allocations: 131.7 kB / 0.7135 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00574/0.1989, allocations: 6.595 MB / 0.7199 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005358/0.1995, allocations: 35.97 kB / 0.72 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.1996, allocations: 28 kB / 0.72 GB, free: 6.09 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.0003241/0.1999, allocations: 262.7 kB / 0.7202 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2, allocations: 75.16 kB / 0.7203 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.2015, allocations: 0.8886 MB / 0.7212 GB, free: 4.84 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2015, allocations: 4 kB / 0.7212 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2015, allocations: 7.938 kB / 0.7212 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2015, allocations: 3.984 kB / 0.7212 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.2039, allocations: 1.72 MB / 0.7229 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.204, allocations: 7.938 kB / 0.7229 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.2042, allocations: 59.89 kB / 0.7229 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007427/0.205, allocations: 267.4 kB / 0.7232 GB, free: 2.676 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.205, allocations: 12 kB / 0.7232 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005635/0.2107, allocations: 6.595 MB / 0.7297 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2107, allocations: 4.031 kB / 0.7297 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.2122, allocations: 0.9836 MB / 0.7306 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.2124, allocations: 192.2 kB / 0.7308 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.443e-05/0.2125, allocations: 19.88 kB / 0.7308 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.2129, allocations: 31.97 kB / 0.7308 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.213, allocations: 43.94 kB / 0.7309 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.213, allocations: 16 kB / 0.7309 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003908/0.2134, allocations: 387.1 kB / 0.7313 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.433e-06/0.2134, allocations: 0 / 0.7313 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007638/0.2142, allocations: 227.9 kB / 0.7315 GB, free: 9.594 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.0001432/0.2144, allocations: 119.2 kB / 0.7316 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001736/0.2161, allocations: 1.268 MB / 0.7328 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2161, allocations: 0 / 0.7328 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.2172, allocations: 0.8817 MB / 0.7337 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009687/0.2182, allocations: 209.6 kB / 0.7339 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.2202, allocations: 1.655 MB / 0.7355 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.2207, allocations: 1.016 MB / 0.7365 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003823/0.2211, allocations: 122 kB / 0.7366 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.2212, allocations: 43.44 kB / 0.7367 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of SimCode: time 2.41e-07/0.2212, allocations: 4 kB / 0.7367 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of Templates: time 0.01675/0.238, allocations: 10.8 MB / 0.7472 GB, free: 9.43 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)