Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 89.33 kB / 16.65 MB, free: 6.535 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.001311/0.001311, allocations: 176.5 kB / 17.56 MB, free: 6.18 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.531/1.531, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1661/0.1661, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.0005182/0.0005179, allocations: 12.56 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2598, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002033/0.2619, allocations: 1.809 MB / 435.3 MB, free: 16.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.2646, allocations: 2.161 MB / 437.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.916e-05/0.2646, allocations: 0 / 437.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.2648, allocations: 11.92 kB / 437.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.2649, allocations: 35.83 kB / 437.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.2666, allocations: 0.6822 MB / 438.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.2668, allocations: 123.6 kB / 438.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.101e-05/0.2669, allocations: 4.188 kB / 438.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.711e-05/0.267, allocations: 35.83 kB / 438.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.271e-05/0.2671, allocations: 59.75 kB / 438.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.2671, allocations: 4 kB / 438.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.2685, allocations: 1.232 MB / 439.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.87e-05/0.2686, allocations: 43.84 kB / 439.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.284e-05/0.2687, allocations: 77.25 kB / 439.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.2699, allocations: 1.339 MB / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2699, allocations: 0 / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2699, allocations: 0 / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2699, allocations: 0 / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006303/0.2705, allocations: 0.5862 MB / 441.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2706, allocations: 12.03 kB / 441.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.2706, allocations: 20.64 kB / 441.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.2708, allocations: 223.4 kB / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.2708, allocations: 0 / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.2708, allocations: 0 / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.271, allocations: 142.6 kB / 442.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.271, allocations: 0 / 442.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2711, allocations: 0 / 442.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2711, allocations: 0 / 442.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.864e-05/0.2712, allocations: 96.28 kB / 442.2 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.2713, allocations: 206.1 kB / 442.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.2715, allocations: 162.8 kB / 442.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2716, allocations: 145.2 kB / 442.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.2716, allocations: 4 kB / 442.7 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.2716, allocations: 30.56 kB / 442.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.082e-06/0.2716, allocations: 0 / 442.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005532/0.2722, allocations: 0.4919 MB / 443.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.2723, allocations: 109 kB / 443.3 MB, free: 8.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2724, allocations: 178.9 kB / 443.5 MB, free: 8.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.2724, allocations: 33.64 kB / 443.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.2725, allocations: 100.8 kB / 443.6 MB, free: 8.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.978e-05/0.2726, allocations: 134 kB / 443.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.2726, allocations: 29.7 kB / 443.8 MB, free: 8.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.2727, allocations: 334.8 kB / 444.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.241e-05/0.2728, allocations: 99.89 kB / 444.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.616e-05/0.2729, allocations: 99.95 kB / 444.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.2731, allocations: 377.4 kB / 444.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2732, allocations: 0 / 444.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002994/0.2735, allocations: 335 kB / 445 MB, free: 6.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.757e-05/0.2735, allocations: 85.64 kB / 445.1 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2736, allocations: 3.938 kB / 445.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2736, allocations: 0 / 445.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.723e-06/0.2736, allocations: 3.984 kB / 445.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2736, allocations: 0 / 445.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.198e-05/0.2737, allocations: 23.69 kB / 445.1 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.2737, allocations: 8 kB / 445.1 MB, free: 6.75 MB / 318.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.0001565/0.2739, allocations: 247.3 kB / 445.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.2739, allocations: 27.72 kB / 445.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.67e-05/0.2739, allocations: 10.66 kB / 445.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2739, allocations: 0 / 445.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2739, allocations: 0 / 445.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2739, allocations: 0 / 445.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.2741, allocations: 237.3 kB / 445.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2741, allocations: 0 / 445.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.2741, allocations: 0 / 445.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.2741, allocations: 0 / 445.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.2741, allocations: 15.98 kB / 445.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2741, allocations: 0 / 445.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2741, allocations: 0 / 445.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007926/0.2749, allocations: 0.9275 MB / 446.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.275, allocations: 100.7 kB / 446.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.275, allocations: 8 kB / 446.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.727e-05/0.2751, allocations: 4 kB / 446.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.2751, allocations: 7.984 kB / 446.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2751, allocations: 12.03 kB / 446.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.682e-05/0.2752, allocations: 123.2 kB / 446.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2752, allocations: 0 / 446.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000858/0.2761, allocations: 367.8 kB / 447.2 MB, free: 4.578 MB / 318.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.0008744/0.277, allocations: 378.5 kB / 447.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.278, allocations: 1.597 MB / 449.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.278, allocations: 0 / 449.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.2787, allocations: 1.37 MB / 450.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.279, allocations: 16 kB / 450.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007621/0.2797, allocations: 0.7505 MB / 451.3 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.2801, allocations: 0.7559 MB / 452 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.475e-05/0.2801, allocations: 3.953 kB / 452 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.2801, allocations: 11.44 kB / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2801, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].