Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008982, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007263/0.007263, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.344/1.344, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001665/0.001665, allocations: 277.6 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9291/0.9291, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004027, allocations: 11.31 kB / 0.5987 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1566, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004767/0.1614, allocations: 4.019 MB / 0.6891 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00457/0.166, allocations: 3.182 MB / 0.6922 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.1662, allocations: 7.938 kB / 0.6922 GB, free: 7.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005927/0.1668, allocations: 174.9 kB / 0.6923 GB, free: 7.688 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007422/0.1676, allocations: 347.7 kB / 0.6927 GB, free: 7.348 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.1681, allocations: 234.9 kB / 0.6929 GB, free: 7.121 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.1688, allocations: 0.7961 MB / 0.6937 GB, free: 6.324 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.1701, allocations: 0.8213 MB / 0.6945 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003734/0.1704, allocations: 223.1 kB / 0.6947 GB, free: 5.258 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.1708, allocations: 251 kB / 0.6949 GB, free: 5.012 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.1709, allocations: 16 kB / 0.6949 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.1713, allocations: 327.4 kB / 0.6953 GB, free: 4.676 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.1715, allocations: 135.6 kB / 0.6954 GB, free: 4.543 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.1717, allocations: 216.6 kB / 0.6956 GB, free: 4.324 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006823/0.1723, allocations: 0.7593 MB / 0.6963 GB, free: 3.562 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1724, allocations: 4 kB / 0.6963 GB, free: 3.559 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1724, allocations: 0 / 0.6963 GB, free: 3.559 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1724, allocations: 0 / 0.6963 GB, free: 3.559 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.0011/0.1735, allocations: 0.6935 MB / 0.697 GB, free: 2.816 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1735, allocations: 11.97 kB / 0.697 GB, free: 2.805 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/0.1762, allocations: 0.6672 MB / 0.6977 GB, free: 2.137 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005913/0.1768, allocations: 435.8 kB / 0.6981 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1769, allocations: 21.03 kB / 0.6981 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.182e-05/0.177, allocations: 36.11 kB / 0.6982 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.1785, allocations: 0.7904 MB / 0.6989 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1785, allocations: 0 / 0.6989 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.785e-05/0.1786, allocations: 12 kB / 0.6989 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.1787, allocations: 40.61 kB / 0.699 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.1807, allocations: 0.8765 MB / 0.6998 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003544/0.1842, allocations: 2.812 MB / 0.7026 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.1859, allocations: 0.5253 MB / 0.7031 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007114/0.1866, allocations: 260.6 kB / 0.7033 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.456e-05/0.1867, allocations: 85.11 kB / 0.7034 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1868, allocations: 30.56 kB / 0.7034 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.1868, allocations: 0 / 0.7034 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24): time 0.01155/0.1983, allocations: 3.111 MB / 0.7065 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.1984, allocations: 55.41 kB / 0.7065 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/0.1989, allocations: 413.5 kB / 0.7069 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.1989, allocations: 29.7 kB / 0.707 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.1991, allocations: 235.9 kB / 0.7072 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.205e-05/0.1992, allocations: 90.69 kB / 0.7073 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-05/0.1992, allocations: 25.72 kB / 0.7073 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1994, allocations: 350.8 kB / 0.7076 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009355/0.2003, allocations: 355.7 kB / 0.708 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009514/0.2013, allocations: 430.1 kB / 0.7084 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001867/0.2032, allocations: 0.7677 MB / 0.7091 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2032, allocations: 0 / 0.7091 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005307/0.2085, allocations: 1.526 MB / 0.7106 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.2086, allocations: 148 kB / 0.7108 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2086, allocations: 0 / 0.7108 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00398/0.2126, allocations: 0.8208 MB / 0.7116 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.2132, allocations: 131.8 kB / 0.7117 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006477/0.2197, allocations: 4.541 MB / 0.7161 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007652/0.2205, allocations: 115.9 kB / 0.7162 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.2205, allocations: 15.98 kB / 0.7162 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.2206, allocations: 5.875 kB / 0.7163 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004356/0.2249, allocations: 1.241 MB / 0.7175 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2249, allocations: 4 kB / 0.7175 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.2276, allocations: 0.5354 MB / 0.718 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006373/0.2282, allocations: 143.8 kB / 0.7181 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004553/0.2328, allocations: 2.693 MB / 0.7208 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006931/0.2335, allocations: 111.9 kB / 0.7209 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.2335, allocations: 19.98 kB / 0.7209 GB, free: 9.445 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003532/0.2339, allocations: 318.2 kB / 0.7212 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.81e-05/0.234, allocations: 35.53 kB / 0.7212 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004754/0.2387, allocations: 1.393 MB / 0.7226 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2388, allocations: 7.938 kB / 0.7226 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2388, allocations: 0 / 0.7226 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.2388, allocations: 7.922 kB / 0.7226 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005377/0.2442, allocations: 2.042 MB / 0.7246 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2442, allocations: 4 kB / 0.7246 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003875/0.2446, allocations: 83.84 kB / 0.7247 GB, free: 5.461 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003451/0.248, allocations: 0.7662 MB / 0.7254 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.2481, allocations: 3.984 kB / 0.7254 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005552/0.2536, allocations: 4.364 MB / 0.7297 GB, free: 56 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.2537, allocations: 4.031 kB / 0.7297 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004528/0.2582, allocations: 1.407 MB / 0.7311 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.2584, allocations: 168.6 kB / 0.7312 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.894e-05/0.2585, allocations: 7.938 kB / 0.7312 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005989/0.2591, allocations: 95.86 kB / 0.7313 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.2592, allocations: 23.95 kB / 0.7314 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.2592, allocations: 8 kB / 0.7314 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003422/0.2596, allocations: 299.1 kB / 0.7316 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2596, allocations: 0 / 0.7316 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007967/0.2604, allocations: 200 kB / 0.7318 GB, free: 13.81 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001554/0.2606, allocations: 115.4 kB / 0.7319 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004452/0.265, allocations: 1.733 MB / 0.7336 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.265, allocations: 4 kB / 0.7336 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.2663, allocations: 0.6345 MB / 0.7343 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007236/0.267, allocations: 126.3 kB / 0.7344 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.2689, allocations: 1.237 MB / 0.7356 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.2694, allocations: 0.9171 MB / 0.7365 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004853/0.2699, allocations: 155.2 kB / 0.7366 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.27, allocations: 31.42 kB / 0.7367 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of SimCode: time 3.51e-07/0.27, allocations: 0 / 0.7367 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of Templates: time 0.01668/0.2867, allocations: 11.69 MB / 0.7481 GB, free: 13.14 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)