Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 93.8 kB / 16.3 MB, free: 5.996 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.001131/0.001131, allocations: 184 kB / 17.2 MB, free: 5.914 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.553/1.553, allocations: 205.4 MB / 223.4 MB, free: 5.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3596/0.3596, allocations: 38.05 MB / 309.7 MB, free: 8.82 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.0005019/0.0005021, allocations: 19.98 kB / 376.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 56.34 MB / 432.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002639/0.1348, allocations: 1.792 MB / 434.6 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1365, allocations: 1.038 MB / 435.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.252e-05/0.1366, allocations: 4 kB / 435.7 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.1368, allocations: 15.91 kB / 435.7 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.91e-05/0.1369, allocations: 15.97 kB / 435.7 MB, free: 3.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007753/0.1377, allocations: 203.5 kB / 435.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.212e-05/0.1378, allocations: 59.84 kB / 435.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.333e-05/0.1379, allocations: 0 / 435.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.606e-05/0.1379, allocations: 27.91 kB / 436 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.306e-05/0.138, allocations: 35.84 kB / 436 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.1381, allocations: 8 kB / 436 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004571/0.1385, allocations: 295.5 kB / 436.3 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.1386, allocations: 23.92 kB / 436.3 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.1386, allocations: 41.64 kB / 436.4 MB, free: 3.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005253/0.1392, allocations: 375.5 kB / 436.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1392, allocations: 0 / 436.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1392, allocations: 3.938 kB / 436.7 MB, free: 2.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1392, allocations: 0 / 436.7 MB, free: 2.77 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.00052/0.1397, allocations: 452.6 kB / 437.2 MB, free: 2.273 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1398, allocations: 12.03 kB / 437.2 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.749e-05/0.1398, allocations: 11.86 kB / 437.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.14, allocations: 198.7 kB / 437.4 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1401, allocations: 0 / 437.4 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.1401, allocations: 7.984 kB / 437.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.1403, allocations: 89.66 kB / 437.5 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1403, allocations: 0 / 437.5 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1403, allocations: 3.953 kB / 437.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1403, allocations: 0 / 437.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.552e-05/0.1404, allocations: 59.97 kB / 437.6 MB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.1406, allocations: 181.5 kB / 437.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.1407, allocations: 130.5 kB / 437.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.1407, allocations: 3.984 kB / 437.9 MB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.1408, allocations: 34.59 kB / 437.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 9.02e-07/0.1408, allocations: 0 / 437.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005161/0.1413, allocations: 376.6 kB / 438.3 MB, free: 1.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.1414, allocations: 97.08 kB / 438.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.1415, allocations: 141.9 kB / 438.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1415, allocations: 29.64 kB / 438.5 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/0.1416, allocations: 92.47 kB / 438.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.1416, allocations: 59.09 kB / 438.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.1416, allocations: 0 / 438.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1418, allocations: 330.8 kB / 439 MB, free: 268 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.269e-05/0.1418, allocations: 55.95 kB / 439.1 MB, free: 212 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.088e-05/0.1419, allocations: 59.91 kB / 439.1 MB, free: 152 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.142, allocations: 114.4 kB / 439.2 MB, free: 32 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.142, allocations: 0 / 439.2 MB, free: 32 kB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002487/0.1423, allocations: 223 kB / 439.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/0.1424, allocations: 61.66 kB / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1424, allocations: 0 / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.1424, allocations: 0 / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.1424, allocations: 0 / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.1424, allocations: 3.938 kB / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.736e-05/0.1425, allocations: 11.84 kB / 439.5 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.1425, allocations: 8 kB / 439.5 MB, free: 15.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.1427, allocations: 183.5 kB / 439.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.1427, allocations: 11.91 kB / 439.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.1427, allocations: 13.17 kB / 439.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1427, allocations: 0 / 439.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1427, allocations: 4 kB / 439.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1427, allocations: 0 / 439.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.1429, allocations: 201.4 kB / 439.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1429, allocations: 3.984 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1429, allocations: 0 / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1429, allocations: 4 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.1429, allocations: 4 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1429, allocations: 0 / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1429, allocations: 0 / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.1434, allocations: 378.5 kB / 440.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.839e-05/0.1434, allocations: 92.86 kB / 440.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.1435, allocations: 7.984 kB / 440.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.725e-05/0.1435, allocations: 7.938 kB / 440.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.746e-05/0.1436, allocations: 15.98 kB / 440.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.1436, allocations: 4 kB / 440.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.881e-05/0.1437, allocations: 103.2 kB / 440.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1437, allocations: 0 / 440.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.1441, allocations: 124 kB / 440.7 MB, free: 14.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004442/0.1445, allocations: 183.1 kB / 440.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006194/0.1452, allocations: 0.5656 MB / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1452, allocations: 4.062 kB / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.1456, allocations: 471.3 kB / 441.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001845/0.1458, allocations: 17.03 kB / 441.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005739/0.1464, allocations: 435.3 kB / 442.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.1467, allocations: 0.7199 MB / 443 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.588e-05/0.1467, allocations: 0 / 443 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.217e-05/0.1467, allocations: 7.438 kB / 443 MB, free: 12 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1467, allocations: 0 / 443 MB, free: 12 MB / 382.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].