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.001403/0.001403, allocations: 108 kB / 15.6 MB, free: 132 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.001628/0.001628, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002095, allocations: 290.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.9278/0.9278, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 95.84 kB / 0.5952 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1393, allocations: 86.98 MB / 0.6802 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008063/0.1474, allocations: 6.796 MB / 0.6868 GB, free: 9.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004582/0.152, allocations: 3.068 MB / 0.6898 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000409/0.1525, allocations: 27.81 kB / 0.6898 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.1547, allocations: 0.952 MB / 0.6908 GB, free: 5.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1558, allocations: 0.5011 MB / 0.6913 GB, free: 5.293 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009514/0.1568, allocations: 446 kB / 0.6917 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.158, allocations: 1.228 MB / 0.6929 GB, free: 3.629 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009272/0.1589, allocations: 0.6622 MB / 0.6935 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006713/0.1596, allocations: 466.3 kB / 0.694 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007273/0.1604, allocations: 0.5254 MB / 0.6945 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.1605, allocations: 68 kB / 0.6946 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008094/0.1614, allocations: 375.3 kB / 0.6949 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003772/0.1618, allocations: 311.1 kB / 0.6952 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006368/0.1624, allocations: 453.7 kB / 0.6956 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.1639, allocations: 1.203 MB / 0.6968 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1639, allocations: 0 / 0.6968 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1639, allocations: 0 / 0.6968 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.541e-05/0.164, allocations: 0 / 0.6968 GB, free: 15.59 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.002065/0.166, allocations: 1.169 MB / 0.698 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1661, allocations: 11.97 kB / 0.698 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.1678, allocations: 243.6 kB / 0.6982 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008237/0.1686, allocations: 0.5607 MB / 0.6988 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.1686, allocations: 41.69 kB / 0.6988 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.1688, allocations: 68.36 kB / 0.6989 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1702, allocations: 1.089 MB / 0.6999 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.1703, allocations: 4 kB / 0.6999 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.641e-05/0.1703, allocations: 31.98 kB / 0.7 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.1705, allocations: 85.25 kB / 0.7 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.1717, allocations: 0.7542 MB / 0.7008 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.1766, allocations: 5.893 MB / 0.7065 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009184/0.1775, allocations: 0.5532 MB / 0.7071 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.178, allocations: 326 kB / 0.7074 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.178, allocations: 12.44 kB / 0.7074 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.178, allocations: 35 kB / 0.7074 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.964e-06/0.178, allocations: 0 / 0.7074 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.00354/0.1816, allocations: 1.986 MB / 0.7094 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.1816, allocations: 59.84 kB / 0.7094 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.1822, allocations: 0.5665 MB / 0.71 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.1822, allocations: 33.7 kB / 0.71 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.1825, allocations: 415 kB / 0.7104 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1826, allocations: 173.5 kB / 0.7106 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.1828, allocations: 130.4 kB / 0.7107 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1829, allocations: 378.7 kB / 0.7111 GB, free: 220 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003874/0.1833, allocations: 277.9 kB / 0.7113 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.1839, allocations: 496.9 kB / 0.7118 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009305/0.1848, allocations: 0.8132 MB / 0.7126 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1848, allocations: 4 kB / 0.7126 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001662/0.1865, allocations: 1.087 MB / 0.7137 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1865, allocations: 8 kB / 0.7137 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1865, allocations: 4 kB / 0.7137 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007891/0.1873, allocations: 283.7 kB / 0.7139 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.1878, allocations: 127.7 kB / 0.7141 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/0.1939, allocations: 7.127 MB / 0.721 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004974/0.1944, allocations: 39.97 kB / 0.7211 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.1945, allocations: 31.98 kB / 0.7211 GB, free: 5.156 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.0003057/0.1948, allocations: 255.7 kB / 0.7213 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.1949, allocations: 71.16 kB / 0.7214 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.1964, allocations: 0.8964 MB / 0.7223 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1964, allocations: 8 kB / 0.7223 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.1964, allocations: 4 kB / 0.7223 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1964, allocations: 3.984 kB / 0.7223 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.1989, allocations: 1.72 MB / 0.724 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1989, allocations: 4 kB / 0.724 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.1992, allocations: 63.95 kB / 0.724 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000701/0.1999, allocations: 271.4 kB / 0.7243 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.1999, allocations: 8 kB / 0.7243 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005975/0.2059, allocations: 7.122 MB / 0.7313 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.2059, allocations: 4.031 kB / 0.7313 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.2073, allocations: 0.9912 MB / 0.7322 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/0.2076, allocations: 196.2 kB / 0.7324 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.31e-05/0.2077, allocations: 8 kB / 0.7324 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000366/0.208, allocations: 35.91 kB / 0.7325 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/0.2081, allocations: 43.94 kB / 0.7325 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.2082, allocations: 15.94 kB / 0.7325 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003935/0.2086, allocations: 391 kB / 0.7329 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2086, allocations: 0 / 0.7329 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006946/0.2093, allocations: 228 kB / 0.7331 GB, free: 8.098 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.0001327/0.2094, allocations: 115.2 kB / 0.7332 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001899/0.2113, allocations: 1.338 MB / 0.7345 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.2113, allocations: 0 / 0.7345 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.2125, allocations: 0.8854 MB / 0.7354 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009589/0.2135, allocations: 228.2 kB / 0.7356 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.2154, allocations: 1.359 MB / 0.7369 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.216, allocations: 1.013 MB / 0.7379 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003746/0.2164, allocations: 114 kB / 0.738 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2165, allocations: 43.44 kB / 0.7381 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of SimCode: time 3.7e-07/0.2165, allocations: 0 / 0.7381 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of Templates: time 0.01751/0.234, allocations: 11.2 MB / 0.749 GB, free: 7.773 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)