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.001189/0.001189, allocations: 173.1 kB / 15.77 MB, free: 6.32 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.761/1.761, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0007919/0.0007921, allocations: 86.36 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1883/0.1883, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004205/0.0004205, allocations: 8 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1089, allocations: 56.35 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006439/0.1154, allocations: 5.081 MB / 484.2 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002879/0.1183, allocations: 1.513 MB / 485.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006149/0.119, allocations: 31.81 kB / 485.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005246/0.1195, allocations: 123.1 kB / 485.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.1206, allocations: 366.2 kB / 486.2 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.1213, allocations: 175.8 kB / 486.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.1223, allocations: 0.8451 MB / 487.2 MB, free: 9.883 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.1226, allocations: 114.3 kB / 487.3 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005952/0.1232, allocations: 270.8 kB / 487.6 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008103/0.124, allocations: 438.8 kB / 488 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.1242, allocations: 24 kB / 488 MB, free: 9.059 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.1243, allocations: 24 kB / 488 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000268/0.1246, allocations: 227.4 kB / 488.3 MB, free: 8.812 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1248, allocations: 113.5 kB / 488.4 MB, free: 8.695 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.1253, allocations: 482.8 kB / 488.8 MB, free: 8.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1253, allocations: 0 / 488.8 MB, free: 8.223 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.594e-06/0.1253, allocations: 0 / 488.8 MB, free: 8.223 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.1254, allocations: 0 / 488.8 MB, free: 8.223 MB / 330.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.002041/0.1274, allocations: 0.8466 MB / 489.7 MB, free: 7.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1275, allocations: 8.031 kB / 489.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.1276, allocations: 59.3 kB / 489.8 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.1288, allocations: 0.587 MB / 490.3 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.1289, allocations: 24.66 kB / 490.4 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.129, allocations: 40 kB / 490.4 MB, free: 6.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008454/0.1298, allocations: 0.5479 MB / 491 MB, free: 5.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1299, allocations: 0 / 491 MB, free: 5.977 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.1299, allocations: 12 kB / 491 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003225/0.1302, allocations: 92.47 kB / 491.1 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006144/0.1309, allocations: 354.3 kB / 491.4 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/0.134, allocations: 2.062 MB / 493.5 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008494/0.1349, allocations: 385.2 kB / 493.8 MB, free: 2.992 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005434/0.1354, allocations: 313.5 kB / 494.2 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1355, allocations: 8 kB / 494.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.1355, allocations: 30.56 kB / 494.2 MB, free: 2.633 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.1355, allocations: 0 / 494.2 MB, free: 2.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.004626/0.1401, allocations: 2.545 MB / 496.7 MB, free: 15.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.1402, allocations: 81.11 kB / 496.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.1407, allocations: 381.6 kB / 497.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.1407, allocations: 33.64 kB / 497.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.1409, allocations: 248.2 kB / 497.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.141, allocations: 142.1 kB / 497.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.1411, allocations: 8 kB / 497.6 MB, free: 14.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1413, allocations: 370.8 kB / 498 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003831/0.1416, allocations: 241 kB / 498.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004564/0.1421, allocations: 358.7 kB / 498.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.1426, allocations: 293.5 kB / 498.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1426, allocations: 0 / 498.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001794/0.1444, allocations: 1.01 MB / 499.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.1444, allocations: 11.92 kB / 499.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1444, allocations: 4 kB / 499.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.1454, allocations: 405.5 kB / 0.4885 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.1458, allocations: 87.83 kB / 0.4886 GB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005277/0.151, allocations: 4.719 MB / 0.4932 GB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.1514, allocations: 48 kB / 0.4933 GB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.211e-05/0.1515, allocations: 19.95 kB / 0.4933 GB, free: 7.094 MB / 346.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.0002887/0.1518, allocations: 201.7 kB / 0.4935 GB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/0.1519, allocations: 43.53 kB / 0.4935 GB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.1534, allocations: 0.8351 MB / 0.4943 GB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.1534, allocations: 4 kB / 0.4943 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.1534, allocations: 7.953 kB / 0.4944 GB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1534, allocations: 3.984 kB / 0.4944 GB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.1556, allocations: 1.417 MB / 0.4957 GB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1556, allocations: 4.078 kB / 0.4957 GB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.1558, allocations: 43.97 kB / 0.4958 GB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.157, allocations: 445.3 kB / 0.4962 GB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.157, allocations: 31.97 kB / 0.4962 GB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.1624, allocations: 6.247 MB / 0.5023 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1624, allocations: 0 / 0.5023 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.1641, allocations: 1.121 MB / 0.5034 GB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.1643, allocations: 108.6 kB / 0.5035 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/0.1644, allocations: 27.98 kB / 0.5036 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.1647, allocations: 43.94 kB / 0.5036 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.1648, allocations: 43.83 kB / 0.5037 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.1648, allocations: 11.98 kB / 0.5037 GB, free: 11.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002841/0.1651, allocations: 263.1 kB / 0.5039 GB, free: 11.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1651, allocations: 4 kB / 0.5039 GB, free: 11.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006347/0.1657, allocations: 152 kB / 0.5041 GB, free: 11.33 MB / 362.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.0001673/0.1659, allocations: 131 kB / 0.5042 GB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.1676, allocations: 0.8921 MB / 0.5051 GB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1676, allocations: 0 / 0.5051 GB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.1691, allocations: 1.079 MB / 0.5061 GB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.1698, allocations: 109.5 kB / 0.5062 GB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.1728, allocations: 2.271 MB / 0.5084 GB, free: 6.656 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.1734, allocations: 0.882 MB / 0.5093 GB, free: 5.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.734e-05/0.1735, allocations: 31.44 kB / 0.5093 GB, free: 5.719 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1735, allocations: 0 / 0.5093 GB, free: 5.719 MB / 362.7 MB Notification: Performance of Templates: time 0.1954/0.3689, allocations: 13.18 MB / 0.5222 GB, free: 50.86 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)