Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, 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.001092/0.001092, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002185/0.002185, allocations: 278.7 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9254/0.9254, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 97.98 kB / 0.5952 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1382, allocations: 86.98 MB / 0.6802 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.00766/0.1459, allocations: 6.073 MB / 0.6861 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004644/0.1506, allocations: 3.136 MB / 0.6892 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.151, allocations: 35.81 kB / 0.6892 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002215/0.1532, allocations: 0.9365 MB / 0.6901 GB, free: 6.457 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009916/0.1542, allocations: 469.5 kB / 0.6906 GB, free: 5.996 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.1553, allocations: 486.8 kB / 0.691 GB, free: 5.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009606/0.1563, allocations: 1.092 MB / 0.6921 GB, free: 4.426 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008506/0.1571, allocations: 0.643 MB / 0.6927 GB, free: 3.781 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.1576, allocations: 430.4 kB / 0.6931 GB, free: 3.359 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000508/0.1581, allocations: 470.2 kB / 0.6936 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.14e-05/0.1582, allocations: 60 kB / 0.6937 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007327/0.1589, allocations: 487 kB / 0.6941 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.1592, allocations: 287.2 kB / 0.6944 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003407/0.1595, allocations: 401.9 kB / 0.6948 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.1606, allocations: 1.164 MB / 0.6959 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.321e-05/0.1606, allocations: 4 kB / 0.6959 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1606, allocations: 0 / 0.6959 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1606, allocations: 0 / 0.6959 GB, free: 0.5156 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001442/0.1621, allocations: 1.052 MB / 0.6969 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.1621, allocations: 8.031 kB / 0.6969 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.1636, allocations: 219.7 kB / 0.6972 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006744/0.1642, allocations: 0.5375 MB / 0.6977 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.1643, allocations: 49.67 kB / 0.6977 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/0.1644, allocations: 60.38 kB / 0.6978 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.1657, allocations: 1.038 MB / 0.6988 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.1657, allocations: 7.938 kB / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.388e-05/0.1658, allocations: 28 kB / 0.6988 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-05/0.1659, allocations: 61.28 kB / 0.6989 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009881/0.1668, allocations: 0.6918 MB / 0.6996 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004575/0.1714, allocations: 5.756 MB / 0.7052 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008012/0.1722, allocations: 0.5949 MB / 0.7058 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007393/0.173, allocations: 423.7 kB / 0.7062 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.173, allocations: 4 kB / 0.7062 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.1731, allocations: 38.56 kB / 0.7062 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 2.284e-06/0.1731, allocations: 7.938 kB / 0.7062 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004215/0.1773, allocations: 2.054 MB / 0.7082 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.1773, allocations: 55.41 kB / 0.7083 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004316/0.1778, allocations: 454.7 kB / 0.7087 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.1778, allocations: 33.7 kB / 0.7087 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.1781, allocations: 387 kB / 0.7091 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.1782, allocations: 149.8 kB / 0.7093 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.1783, allocations: 110.2 kB / 0.7094 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1785, allocations: 366.8 kB / 0.7097 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.1788, allocations: 249.2 kB / 0.71 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004614/0.1793, allocations: 457 kB / 0.7104 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008788/0.1802, allocations: 0.7519 MB / 0.7111 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1802, allocations: 0 / 0.7111 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001816/0.182, allocations: 1.066 MB / 0.7122 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1821, allocations: 8 kB / 0.7122 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.1821, allocations: 12 kB / 0.7122 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.1831, allocations: 331.5 kB / 0.7125 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000307/0.1834, allocations: 99.81 kB / 0.7126 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007177/0.1906, allocations: 7.518 MB / 0.7199 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/0.191, allocations: 32.02 kB / 0.72 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/0.1911, allocations: 28 kB / 0.72 GB, free: 6.242 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003225/0.1914, allocations: 248.3 kB / 0.7202 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.742e-05/0.1915, allocations: 59.28 kB / 0.7203 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.1931, allocations: 0.9119 MB / 0.7212 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1931, allocations: 4 kB / 0.7212 GB, free: 5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1932, allocations: 8 kB / 0.7212 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1932, allocations: 4 kB / 0.7212 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.1957, allocations: 1.712 MB / 0.7229 GB, free: 3.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1957, allocations: 4 kB / 0.7229 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.1959, allocations: 35.97 kB / 0.7229 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009202/0.1968, allocations: 327.1 kB / 0.7232 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.1969, allocations: 16.06 kB / 0.7232 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006796/0.2037, allocations: 7.513 MB / 0.7306 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2037, allocations: 4 kB / 0.7306 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.2054, allocations: 1.023 MB / 0.7316 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.2056, allocations: 172.3 kB / 0.7317 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.561e-05/0.2057, allocations: 8 kB / 0.7317 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.206, allocations: 23.97 kB / 0.7318 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2061, allocations: 43.89 kB / 0.7318 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.2062, allocations: 12 kB / 0.7318 GB, free: 9.379 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003201/0.2065, allocations: 310.9 kB / 0.7321 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2065, allocations: 4 kB / 0.7321 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007798/0.2073, allocations: 195.9 kB / 0.7323 GB, free: 8.883 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.2074, allocations: 111.2 kB / 0.7324 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001833/0.2093, allocations: 1.253 MB / 0.7336 GB, free: 7.457 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2093, allocations: 128 / 0.7336 GB, free: 7.457 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.2105, allocations: 0.8581 MB / 0.7345 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.2114, allocations: 209.3 kB / 0.7347 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.2133, allocations: 1.236 MB / 0.7359 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005635/0.2138, allocations: 0.996 MB / 0.7369 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002913/0.2141, allocations: 93.28 kB / 0.7369 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.107e-05/0.2142, allocations: 35.44 kB / 0.737 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of SimCode: time 5.21e-07/0.2142, allocations: 0 / 0.737 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of Templates: time 0.01527/0.2295, allocations: 9.959 MB / 0.7467 GB, free: 10.07 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)