Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009432/0.0009436, allocations: 169.9 kB / 16.07 MB, free: 5.602 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007016/0.0007016, allocations: 80.86 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1754/0.1754, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003719, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2278, allocations: 56.33 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.004712/0.2326, allocations: 5.11 MB / 484.7 MB, free: 5.855 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.235, allocations: 1.514 MB / 486.3 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000364/0.2354, allocations: 29.94 kB / 486.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004791/0.2359, allocations: 132.3 kB / 486.4 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009372/0.2368, allocations: 368.5 kB / 486.8 MB, free: 4.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005666/0.2374, allocations: 177.1 kB / 487 MB, free: 4.434 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.2384, allocations: 0.8472 MB / 487.8 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.2387, allocations: 128.2 kB / 487.9 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.2392, allocations: 269.6 kB / 488.2 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007382/0.2399, allocations: 436.1 kB / 488.6 MB, free: 3.875 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.951e-05/0.24, allocations: 24.88 kB / 488.6 MB, free: 3.875 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.2401, allocations: 28.97 kB / 488.7 MB, free: 3.871 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.2404, allocations: 226.4 kB / 488.9 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.2407, allocations: 267.8 kB / 489.2 MB, free: 3.656 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.2412, allocations: 478.9 kB / 489.6 MB, free: 3.559 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2412, allocations: 4.938 kB / 489.6 MB, free: 3.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2412, allocations: 0 / 489.6 MB, free: 3.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.2413, allocations: 0 / 489.6 MB, free: 3.555 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001717/0.243, allocations: 0.8447 MB / 490.5 MB, free: 3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.243, allocations: 13.47 kB / 490.5 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.2432, allocations: 54.73 kB / 490.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.2443, allocations: 0.5997 MB / 491.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.2444, allocations: 31.75 kB / 491.2 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.634e-05/0.2445, allocations: 39.58 kB / 491.2 MB, free: 2.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008478/0.2454, allocations: 0.544 MB / 491.7 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.2454, allocations: 4 kB / 491.8 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.2454, allocations: 12.64 kB / 491.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003098/0.2457, allocations: 86.36 kB / 491.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005847/0.2463, allocations: 356.5 kB / 492.2 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002763/0.2491, allocations: 2.057 MB / 494.3 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007968/0.2499, allocations: 385.4 kB / 494.6 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000568/0.2505, allocations: 305.4 kB / 494.9 MB, free: 0.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.2506, allocations: 7.812 kB / 494.9 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.2506, allocations: 38.36 kB / 495 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.178e-06/0.2506, allocations: 0 / 495 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.004536/0.2551, allocations: 2.536 MB / 497.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.2552, allocations: 82.38 kB / 497.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004664/0.2557, allocations: 382.4 kB / 498 MB, free: 14.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.2558, allocations: 31.05 kB / 498 MB, free: 14.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.256, allocations: 253.8 kB / 498.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.2561, allocations: 135.1 kB / 498.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.2561, allocations: 9.812 kB / 498.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2563, allocations: 362.4 kB / 498.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.2567, allocations: 242.6 kB / 499 MB, free: 14.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004527/0.2571, allocations: 362.6 kB / 499.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008422/0.258, allocations: 0.6156 MB / 499.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.258, allocations: 1.156 kB / 499.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001745/0.2598, allocations: 1.016 MB / 0.4892 GB, free: 13.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.2598, allocations: 10.38 kB / 0.4892 GB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.2599, allocations: 7.359 kB / 0.4892 GB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.2609, allocations: 404.3 kB / 0.4896 GB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.2612, allocations: 89.7 kB / 0.4897 GB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0052/0.2664, allocations: 4.727 MB / 0.4943 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004578/0.2669, allocations: 39.94 kB / 0.4944 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.267, allocations: 18.28 kB / 0.4944 GB, free: 9.195 MB / 330.7 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003469/0.2673, allocations: 208.5 kB / 0.4946 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.653e-05/0.2674, allocations: 38.31 kB / 0.4946 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.269, allocations: 0.8457 MB / 0.4954 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.269, allocations: 4.125 kB / 0.4954 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.269, allocations: 6.688 kB / 0.4955 GB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.269, allocations: 3.984 kB / 0.4955 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.2712, allocations: 1.413 MB / 0.4968 GB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.2712, allocations: 1.375 kB / 0.4968 GB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.2714, allocations: 46.19 kB / 0.4969 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.2727, allocations: 437 kB / 0.4973 GB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.671e-05/0.2728, allocations: 33.91 kB / 0.4973 GB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005135/0.2779, allocations: 6.242 MB / 0.5034 GB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.2779, allocations: 3.984 kB / 0.5034 GB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.2797, allocations: 1.12 MB / 0.5045 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.2799, allocations: 116.6 kB / 0.5046 GB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.28, allocations: 39.92 kB / 0.5047 GB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.2803, allocations: 39.94 kB / 0.5047 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.415e-05/0.2804, allocations: 35.94 kB / 0.5047 GB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.2805, allocations: 11.98 kB / 0.5048 GB, free: 15.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002999/0.2808, allocations: 263.1 kB / 0.505 GB, free: 15.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2808, allocations: 0 / 0.505 GB, free: 15.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006801/0.2815, allocations: 156 kB / 0.5052 GB, free: 15.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001558/0.2816, allocations: 123.1 kB / 0.5053 GB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.2833, allocations: 0.8921 MB / 0.5061 GB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2833, allocations: 0.875 kB / 0.5061 GB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.2847, allocations: 1.086 MB / 0.5072 GB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007162/0.2855, allocations: 115.8 kB / 0.5073 GB, free: 12.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.2884, allocations: 2.276 MB / 0.5095 GB, free: 10.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.289, allocations: 0.882 MB / 0.5104 GB, free: 9.598 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.2891, allocations: 43.38 kB / 0.5104 GB, free: 9.555 MB / 346.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2891, allocations: 0 / 0.5104 GB, free: 9.555 MB / 346.7 MB Notification: Performance of Templates: time 0.016/0.3051, allocations: 13.19 MB / 0.5233 GB, free: 12.35 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)