Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009884/0.0009925, allocations: 176.2 kB / 15.78 MB, free: 6.352 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.65/1.65, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008885/0.0008885, allocations: 98.22 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.181/0.181, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005156/0.0005156, allocations: 15.98 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1299, allocations: 56.33 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005698/0.1356, allocations: 4.384 MB / 483.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.1379, allocations: 1.12 MB / 484.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004664/0.1384, allocations: 27.81 kB / 484.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003157/0.1387, allocations: 59.52 kB / 484.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009195/0.1396, allocations: 266.7 kB / 484.9 MB, free: 12.15 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.1401, allocations: 115.8 kB / 485 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009258/0.141, allocations: 0.6231 MB / 485.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.1413, allocations: 105.7 kB / 485.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.1418, allocations: 187.1 kB / 485.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005622/0.1424, allocations: 259.2 kB / 486.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.956e-05/0.1425, allocations: 12 kB / 486.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.1426, allocations: 12 kB / 486.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.1427, allocations: 139.6 kB / 486.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.1429, allocations: 85.52 kB / 486.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.1432, allocations: 275.3 kB / 486.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1433, allocations: 4 kB / 486.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1433, allocations: 0 / 486.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1433, allocations: 0 / 486.7 MB, free: 10.35 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001338/0.1446, allocations: 0.5932 MB / 487.3 MB, free: 9.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.1447, allocations: 16.03 kB / 487.3 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.1448, allocations: 39.48 kB / 487.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006173/0.1455, allocations: 358.6 kB / 487.7 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.1455, allocations: 16.56 kB / 487.7 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.1456, allocations: 28 kB / 487.7 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.1462, allocations: 352.7 kB / 488.1 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1462, allocations: 4 kB / 488.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.1463, allocations: 8 kB / 488.1 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.1464, allocations: 32.48 kB / 488.1 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004186/0.1468, allocations: 234 kB / 488.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.1487, allocations: 1.37 MB / 489.7 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.1491, allocations: 173 kB / 489.9 MB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.1493, allocations: 101.7 kB / 490 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.1494, allocations: 0 / 490 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.1494, allocations: 42.52 kB / 490 MB, free: 6.773 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.1494, allocations: 0 / 490 MB, free: 6.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001488/0.1509, allocations: 0.7594 MB / 490.8 MB, free: 5.941 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.151, allocations: 77.11 kB / 490.9 MB, free: 5.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.1513, allocations: 304.6 kB / 491.2 MB, free: 5.535 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.1513, allocations: 29.64 kB / 491.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.1515, allocations: 223.5 kB / 491.4 MB, free: 5.277 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.1516, allocations: 51.28 kB / 491.5 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.1516, allocations: 4 kB / 491.5 MB, free: 5.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1517, allocations: 338.8 kB / 491.8 MB, free: 4.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1519, allocations: 71.89 kB / 491.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1521, allocations: 160.8 kB / 492 MB, free: 4.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.1522, allocations: 95.91 kB / 492.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1522, allocations: 0 / 492.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005438/0.1528, allocations: 321.6 kB / 492.4 MB, free: 4.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1528, allocations: 4 kB / 492.4 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1528, allocations: 4 kB / 492.4 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.1531, allocations: 56.81 kB / 492.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.1533, allocations: 52.34 kB / 492.6 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.1547, allocations: 1.483 MB / 494 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.1549, allocations: 12.03 kB / 494 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.155, allocations: 20.09 kB / 494.1 MB, free: 2.426 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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.1552, allocations: 177.6 kB / 494.2 MB, free: 2.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.1552, allocations: 31.61 kB / 494.3 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.1557, allocations: 232.5 kB / 494.5 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1557, allocations: 4 kB / 494.5 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1557, allocations: 0 / 494.5 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.1557, allocations: 0 / 494.5 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000862/0.1566, allocations: 0.6444 MB / 495.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1566, allocations: 0 / 495.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.1567, allocations: 31.92 kB / 495.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.1569, allocations: 56.78 kB / 495.2 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.1569, allocations: 11.95 kB / 495.2 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.1582, allocations: 1.487 MB / 496.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.1582, allocations: 8.031 kB / 496.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.1587, allocations: 401.6 kB / 497.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-05/0.1588, allocations: 100.9 kB / 497.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.1589, allocations: 4 kB / 497.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.159, allocations: 11.98 kB / 497.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.1591, allocations: 16.05 kB / 497.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.1591, allocations: 4 kB / 497.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1593, allocations: 203.1 kB / 497.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1593, allocations: 0 / 497.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003761/0.1597, allocations: 72 kB / 497.5 MB, free: 14.7 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001379/0.1598, allocations: 111.1 kB / 497.6 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.1604, allocations: 286.6 kB / 497.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1604, allocations: 0 / 497.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.1608, allocations: 210.5 kB / 498.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.1613, allocations: 69.33 kB / 498.2 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.1627, allocations: 0.9248 MB / 499.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.1631, allocations: 0.8067 MB / 499.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.657e-05/0.1632, allocations: 23.44 kB / 500 MB, free: 12.19 MB / 346.7 MB Notification: Performance of SimCode: time 3.8e-07/0.1632, allocations: 0 / 500 MB, free: 12.19 MB / 346.7 MB Notification: Performance of Templates: time 0.008373/0.1716, allocations: 4.827 MB / 0.4929 GB, free: 7.348 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)