Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 110.8 kB / 17.74 MB, free: 5.359 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.001249/0.001249, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.432/1.432, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1724/0.1724, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001691/0.001691, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.12, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005747/0.1258, allocations: 4.074 MB / 491.9 MB, free: 4.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.1275, allocations: 0.9437 MB / 492.8 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.1277, allocations: 11.94 kB / 492.8 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.1279, allocations: 51.56 kB / 492.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005118/0.1285, allocations: 178.9 kB / 493 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.1287, allocations: 91.88 kB / 493.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.1292, allocations: 406.5 kB / 493.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.1294, allocations: 126.2 kB / 493.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.1297, allocations: 179.2 kB / 493.8 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.13, allocations: 179.3 kB / 494 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.1301, allocations: 27.88 kB / 494 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.302e-05/0.1302, allocations: 20 kB / 494 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1303, allocations: 87.72 kB / 494.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.1304, allocations: 143.2 kB / 494.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.1307, allocations: 291 kB / 494.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1307, allocations: 0 / 494.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1308, allocations: 0 / 494.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1308, allocations: 0 / 494.6 MB, free: 1.543 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009825/0.1318, allocations: 0.5931 MB / 495.1 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.1318, allocations: 19.89 kB / 495.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.911e-05/0.1319, allocations: 32.56 kB / 495.2 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.1324, allocations: 335 kB / 495.5 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1324, allocations: 20.56 kB / 495.5 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.1325, allocations: 27.94 kB / 495.6 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.1329, allocations: 282.8 kB / 495.8 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1329, allocations: 3.938 kB / 495.8 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.133, allocations: 12 kB / 495.9 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.133, allocations: 8 kB / 495.9 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.1333, allocations: 177 kB / 496 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.1347, allocations: 1.22 MB / 497.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.135, allocations: 109.2 kB / 497.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.215e-05/0.1351, allocations: 41.77 kB / 497.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.1351, allocations: 4 kB / 497.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.1351, allocations: 42.44 kB / 497.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.1352, allocations: 4 kB / 497.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008493/0.136, allocations: 485 kB / 497.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.1361, allocations: 77.11 kB / 498 MB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.1363, allocations: 254.6 kB / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1363, allocations: 25.7 kB / 498.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1365, allocations: 199.8 kB / 498.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.1365, allocations: 47.33 kB / 498.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/0.1366, allocations: 45.7 kB / 498.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1368, allocations: 338.8 kB / 498.9 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.48e-05/0.1368, allocations: 31.98 kB / 498.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.137, allocations: 132.7 kB / 499.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.1372, allocations: 192.6 kB / 499.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1372, allocations: 4 kB / 499.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003166/0.1376, allocations: 201.4 kB / 499.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1376, allocations: 12.05 kB / 499.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1376, allocations: 4 kB / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1376, allocations: 4 kB / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.1378, allocations: 47.92 kB / 499.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1378, allocations: 4 kB / 499.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1379, allocations: 11.88 kB / 499.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.138, allocations: 12 kB / 499.5 MB, free: 12.11 MB / 382.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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.1381, allocations: 153.8 kB / 499.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-05/0.1382, allocations: 27.66 kB / 499.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.1384, allocations: 135.3 kB / 499.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1384, allocations: 4 kB / 499.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1384, allocations: 0 / 499.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1384, allocations: 7.938 kB / 499.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005534/0.139, allocations: 479.2 kB / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.139, allocations: 0 / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.1391, allocations: 23.98 kB / 0.4886 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.1391, allocations: 3.938 kB / 0.4886 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.1392, allocations: 11.97 kB / 0.4886 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1392, allocations: 4.094 kB / 0.4886 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1392, allocations: 7.875 kB / 0.4887 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.1395, allocations: 269.1 kB / 0.4889 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.1396, allocations: 108.8 kB / 0.489 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.1397, allocations: 3.938 kB / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.1398, allocations: 8.062 kB / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.1398, allocations: 8 kB / 0.489 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.1398, allocations: 7.984 kB / 0.489 GB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.14, allocations: 170 kB / 0.4892 GB, free: 10.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.14, allocations: 0 / 0.4892 GB, free: 10.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.1403, allocations: 44 kB / 0.4892 GB, free: 10.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001071/0.1404, allocations: 99.19 kB / 0.4893 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002305/0.1407, allocations: 119.8 kB / 0.4895 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1407, allocations: 0 / 0.4895 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.301e-05/0.1408, allocations: 43.92 kB / 0.4895 GB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004812/0.1412, allocations: 65.36 kB / 0.4896 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000986/0.1422, allocations: 0.5773 MB / 0.4901 GB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.1426, allocations: 0.7712 MB / 0.4909 GB, free: 8.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.1427, allocations: 27.44 kB / 0.4909 GB, free: 8.773 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1427, allocations: 0 / 0.4909 GB, free: 8.773 MB / 382.1 MB Notification: Performance of Templates: time 0.005725/0.1484, allocations: 2.948 MB / 0.4938 GB, free: 5.816 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)