Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 115.8 kB / 17.74 MB, free: 5.336 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.001723/0.001723, allocations: 189.6 kB / 18.67 MB, free: 4.41 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.411/1.411, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1812/0.1812, allocations: 37.97 MB / 309.9 MB, free: 5.941 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.001502/0.001502, allocations: 71.89 kB / 432.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1178, allocations: 55.24 MB / 487.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.00394/0.1218, allocations: 2.103 MB / 489.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003198/0.125, allocations: 2.082 MB / 492 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.724e-05/0.1251, allocations: 4 kB / 492 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1253, allocations: 11.92 kB / 492 MB, free: 4.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.1254, allocations: 27.83 kB / 492 MB, free: 4.066 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.002423/0.1278, allocations: 0.8224 MB / 492.8 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.128, allocations: 75.69 kB / 492.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.526e-05/0.128, allocations: 4.188 kB / 492.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.847e-05/0.1281, allocations: 35.84 kB / 493 MB, free: 3.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.395e-05/0.1282, allocations: 43.83 kB / 493 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.1282, allocations: 7.938 kB / 493 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.1305, allocations: 1.407 MB / 494.4 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.1306, allocations: 15.92 kB / 494.4 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.581e-05/0.1306, allocations: 27.8 kB / 494.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001947/0.1326, allocations: 1.321 MB / 495.8 MB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1326, allocations: 3.938 kB / 495.8 MB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1326, allocations: 7.938 kB / 495.8 MB, free: 296 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1326, allocations: 0 / 495.8 MB, free: 296 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008623/0.1335, allocations: 0.5163 MB / 496.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1336, allocations: 15.89 kB / 496.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.1336, allocations: 8.844 kB / 496.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.1338, allocations: 187.4 kB / 496.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1338, allocations: 0 / 496.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.1338, allocations: 0 / 496.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.134, allocations: 69.67 kB / 496.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.134, allocations: 3.984 kB / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.1341, allocations: 0 / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1341, allocations: 0 / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.993e-05/0.1341, allocations: 39.91 kB / 496.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.1343, allocations: 173.5 kB / 496.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.064e-05/0.1344, allocations: 58.55 kB / 496.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.896e-05/0.1344, allocations: 44.88 kB / 496.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.1345, allocations: 8 kB / 496.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1345, allocations: 34.56 kB / 496.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.1345, allocations: 224 / 496.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003258/0.1348, allocations: 199.1 kB / 497.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.1349, allocations: 85.11 kB / 497.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.135, allocations: 133.7 kB / 497.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.135, allocations: 25.7 kB / 497.4 MB, free: 14.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.1351, allocations: 96.12 kB / 497.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.318e-05/0.1352, allocations: 43.42 kB / 497.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.1352, allocations: 21.72 kB / 497.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1354, allocations: 326.8 kB / 497.8 MB, free: 14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.1355, allocations: 27.98 kB / 497.9 MB, free: 13.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.995e-05/0.1356, allocations: 32.31 kB / 497.9 MB, free: 13.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.1357, allocations: 164.2 kB / 498.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.11e-05/0.1358, allocations: 0 / 498.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001792/0.136, allocations: 163 kB / 498.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/0.136, allocations: 49.67 kB / 498.3 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.136, allocations: 4.062 kB / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.136, allocations: 0 / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1361, allocations: 0 / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.1361, allocations: 0 / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.133e-05/0.1361, allocations: 4 kB / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.05e-05/0.1362, allocations: 7.938 kB / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001186/0.1363, allocations: 163.5 kB / 498.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.1363, allocations: 15.89 kB / 498.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.98e-05/0.1363, allocations: 12.66 kB / 498.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1363, allocations: 4 kB / 498.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1364, allocations: 0 / 498.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1364, allocations: 4 kB / 498.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.1365, allocations: 181.5 kB / 498.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1365, allocations: 0 / 498.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/0.1365, allocations: 0 / 498.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1365, allocations: 0 / 498.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.1366, allocations: 7.984 kB / 498.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1366, allocations: 0 / 498.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1366, allocations: 0 / 498.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.1369, allocations: 298.4 kB / 499 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.137, allocations: 84.95 kB / 499 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.137, allocations: 4 kB / 499 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.166e-05/0.137, allocations: 4 kB / 499 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.05e-05/0.137, allocations: 0 / 499 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.1371, allocations: 4 kB / 499.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.97e-05/0.1371, allocations: 111.2 kB / 499.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1371, allocations: 0 / 499.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008993/0.138, allocations: 319.9 kB / 499.5 MB, free: 12.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001061/0.1391, allocations: 367 kB / 499.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004201/0.1395, allocations: 303.2 kB / 0.4884 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1396, allocations: 4 kB / 0.4884 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.1398, allocations: 223.3 kB / 0.4886 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.14, allocations: 8.125 kB / 0.4886 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.1407, allocations: 334.3 kB / 0.4889 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005998/0.1413, allocations: 0.7041 MB / 0.4896 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.021e-05/0.1413, allocations: 7.438 kB / 0.4896 GB, free: 10.21 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1413, allocations: 0 / 0.4896 GB, free: 10.21 MB / 382.1 MB Notification: Performance of Templates: time 0.01097/0.1523, allocations: 5.947 MB / 0.4955 GB, free: 4.25 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.pipe 2>&1)