Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001022/0.001023, allocations: 191 kB / 18.63 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.204/0.204, allocations: 37.99 MB / 309.8 MB, free: 5.98 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002651/0.002652, allocations: 63.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2666, allocations: 55.26 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005344/0.272, allocations: 4.341 MB / 436.4 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.2734, allocations: 0.9709 MB / 437.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.2736, allocations: 15.94 kB / 437.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.2738, allocations: 55.5 kB / 437.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.2743, allocations: 234.8 kB / 437.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.2745, allocations: 103.8 kB / 437.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000383/0.2749, allocations: 0.4983 MB / 438.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2751, allocations: 139.9 kB / 438.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.2753, allocations: 231 kB / 438.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.2756, allocations: 259.2 kB / 438.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.2757, allocations: 20 kB / 438.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.266e-05/0.2757, allocations: 24 kB / 438.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.2758, allocations: 155.6 kB / 439.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.2759, allocations: 179.1 kB / 439.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.2762, allocations: 362.7 kB / 439.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2762, allocations: 11.94 kB / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2762, allocations: 0 / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2762, allocations: 0 / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008632/0.2771, allocations: 0.6611 MB / 440.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.2771, allocations: 11.89 kB / 440.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.049e-05/0.2772, allocations: 44.47 kB / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.2777, allocations: 383.7 kB / 440.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.2778, allocations: 20.69 kB / 440.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.2778, allocations: 28 kB / 440.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/0.2782, allocations: 352.7 kB / 441.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2782, allocations: 7.984 kB / 441.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.2783, allocations: 12 kB / 441.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.789e-05/0.2783, allocations: 24.53 kB / 441.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2787, allocations: 238 kB / 441.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.2799, allocations: 1.366 MB / 442.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.2802, allocations: 173 kB / 442.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.2803, allocations: 105.7 kB / 443 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.2804, allocations: 0 / 443 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.2804, allocations: 42.56 kB / 443 MB, free: 8.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.2804, allocations: 0 / 443 MB, free: 8.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001057/0.2815, allocations: 0.7558 MB / 443.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2815, allocations: 85.11 kB / 443.9 MB, free: 7.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.2817, allocations: 292.7 kB / 444.2 MB, free: 7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2817, allocations: 29.7 kB / 444.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.2818, allocations: 219.5 kB / 444.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.2818, allocations: 63.17 kB / 444.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.2819, allocations: 45.7 kB / 444.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.424e-05/0.282, allocations: 338.8 kB / 444.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.743e-05/0.2821, allocations: 63.95 kB / 444.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.2822, allocations: 172.8 kB / 445.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.2824, allocations: 244.6 kB / 445.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2824, allocations: 4 kB / 445.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003816/0.2828, allocations: 325.7 kB / 445.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.2828, allocations: 8 kB / 445.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2828, allocations: 4 kB / 445.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.283, allocations: 52.81 kB / 445.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.2832, allocations: 47.91 kB / 445.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.2841, allocations: 1.613 MB / 447.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.2842, allocations: 16.14 kB / 447.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.2842, allocations: 16 kB / 447.4 MB, free: 3.504 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.2844, allocations: 169.7 kB / 447.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.2844, allocations: 23.72 kB / 447.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003278/0.2848, allocations: 248.2 kB / 447.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2848, allocations: 0 / 447.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2848, allocations: 7.984 kB / 447.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2848, allocations: 4 kB / 447.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000664/0.2854, allocations: 0.6365 MB / 448.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2855, allocations: 3.938 kB / 448.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.766e-05/0.2856, allocations: 27.98 kB / 448.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001587/0.2857, allocations: 56.7 kB / 448.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.2858, allocations: 11.98 kB / 448.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008482/0.2866, allocations: 1.597 MB / 450.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2866, allocations: 0 / 450.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.287, allocations: 405.4 kB / 450.6 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.524e-05/0.2871, allocations: 104.8 kB / 450.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.2872, allocations: 8.125 kB / 450.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.2873, allocations: 4 kB / 450.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.2874, allocations: 19.97 kB / 450.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.2874, allocations: 4 kB / 450.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.2876, allocations: 207.1 kB / 450.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2876, allocations: 0 / 450.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.288, allocations: 68 kB / 451 MB, free: 15.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001272/0.2881, allocations: 103.2 kB / 451.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005678/0.2887, allocations: 314.2 kB / 451.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2887, allocations: 0.875 kB / 451.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.289, allocations: 206.7 kB / 451.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.2895, allocations: 68.5 kB / 451.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.2907, allocations: 0.7283 MB / 452.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.2912, allocations: 0.8143 MB / 453.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.2914, allocations: 42.95 kB / 453.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.74e-05/0.2914, allocations: 23.38 kB / 453.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2914, allocations: 0 / 453.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Templates: time 0.006675/0.2981, allocations: 2.938 MB / 456.2 MB, free: 10.35 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)