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.001325/0.001325, allocations: 110.9 kB / 17.68 MB, free: 5.355 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.001077/0.001077, allocations: 192 kB / 18.62 MB, free: 4.434 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.431/1.431, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1769/0.1769, allocations: 37.98 MB / 309.8 MB, free: 5.957 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.002629/0.002629, allocations: 63.91 kB / 376.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.218, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002716/0.2207, allocations: 2.156 MB / 434.2 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.2219, allocations: 1.099 MB / 435.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.415e-05/0.222, allocations: 0 / 435.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.2221, allocations: 15.84 kB / 435.3 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.561e-05/0.2222, allocations: 63.8 kB / 435.4 MB, free: 16.13 MB / 318.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'. Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.2229, allocations: 271.2 kB / 435.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.2231, allocations: 119.5 kB / 435.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.164e-05/0.2231, allocations: 7.984 kB / 435.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.74e-05/0.2232, allocations: 47.81 kB / 435.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.016e-05/0.2233, allocations: 67.73 kB / 435.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.2233, allocations: 4 kB / 435.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004872/0.2238, allocations: 419.2 kB / 436.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.464e-05/0.2239, allocations: 35.89 kB / 436.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.2239, allocations: 39.73 kB / 436.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.2244, allocations: 0.5121 MB / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2244, allocations: 0 / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2244, allocations: 3.938 kB / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.2244, allocations: 0 / 436.9 MB, free: 14.63 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003838/0.2248, allocations: 464.7 kB / 437.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2249, allocations: 19.88 kB / 437.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.2249, allocations: 8.844 kB / 437.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.225, allocations: 196 kB / 437.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.2251, allocations: 12.3 kB / 437.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.2251, allocations: 4.125 kB / 437.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.2252, allocations: 93.66 kB / 437.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-06/0.2252, allocations: 0 / 437.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.2252, allocations: 0 / 437.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.2252, allocations: 0 / 437.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.026e-05/0.2253, allocations: 55.97 kB / 437.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.2254, allocations: 189.5 kB / 437.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.49e-05/0.2255, allocations: 130.5 kB / 438 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.571e-05/0.2256, allocations: 120.8 kB / 438.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-06/0.2256, allocations: 4 kB / 438.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.2256, allocations: 30.56 kB / 438.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 9.52e-07/0.2256, allocations: 0 / 438.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003467/0.226, allocations: 299 kB / 438.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.226, allocations: 93.12 kB / 438.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.575e-05/0.2261, allocations: 137.8 kB / 438.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.2261, allocations: 25.7 kB / 438.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.329e-05/0.2261, allocations: 92.47 kB / 438.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.2262, allocations: 67 kB / 438.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.2262, allocations: 25.72 kB / 438.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.2263, allocations: 322.8 kB / 439.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-05/0.2263, allocations: 59.95 kB / 439.3 MB, free: 12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.044e-05/0.2264, allocations: 55.97 kB / 439.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.2265, allocations: 232.5 kB / 439.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2266, allocations: 0 / 439.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001792/0.2267, allocations: 223.1 kB / 439.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.2268, allocations: 57.66 kB / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.2268, allocations: 4 kB / 439.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2268, allocations: 0 / 439.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.2268, allocations: 0 / 439.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.2268, allocations: 3.984 kB / 439.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.051e-05/0.2269, allocations: 11.84 kB / 439.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.2269, allocations: 8 kB / 439.8 MB, free: 11.38 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 8.426e-05/0.227, allocations: 187.4 kB / 440 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.227, allocations: 15.81 kB / 440 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.07e-05/0.227, allocations: 9.172 kB / 440 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.227, allocations: 4 kB / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2271, allocations: 4 kB / 440.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.2271, allocations: 0 / 440.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.49e-05/0.2271, allocations: 189.6 kB / 440.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2271, allocations: 3.984 kB / 440.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2271, allocations: 0 / 440.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2272, allocations: 11.94 kB / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.2272, allocations: 4 kB / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.2272, allocations: 0 / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2272, allocations: 0 / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.2275, allocations: 394.9 kB / 440.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.149e-05/0.2275, allocations: 88.95 kB / 440.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.2276, allocations: 7.984 kB / 440.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.705e-05/0.2276, allocations: 4 kB / 440.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.2276, allocations: 8.031 kB / 440.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2276, allocations: 11.94 kB / 440.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.767e-05/0.2277, allocations: 106.5 kB / 440.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2277, allocations: 0 / 440.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003459/0.228, allocations: 131.9 kB / 441 MB, free: 10.12 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.000335/0.2284, allocations: 187.2 kB / 441.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.2288, allocations: 0.5656 MB / 441.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2288, allocations: 0 / 441.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.229, allocations: 471.2 kB / 442.2 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.2293, allocations: 23.92 kB / 442.2 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004291/0.2297, allocations: 388.6 kB / 442.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.2298, allocations: 0.7198 MB / 443.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.56e-05/0.2298, allocations: 3.984 kB / 443.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-06/0.2299, allocations: 11.44 kB / 443.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2299, allocations: 0 / 443.3 MB, free: 7.684 MB / 318.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].