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.000797/0.0007971, allocations: 91.75 kB / 16.65 MB, free: 6.586 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.0008861/0.0008861, allocations: 183.8 kB / 17.56 MB, free: 6.203 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.488/1.488, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1824/0.1824, allocations: 38.06 MB / 310.1 MB, free: 5.898 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.0005072/0.0005073, allocations: 23.69 kB / 377.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.228, allocations: 56.33 MB / 433.5 MB, free: 18.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002808/0.2309, allocations: 1.856 MB / 435.3 MB, free: 17.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.2325, allocations: 1.115 MB / 436.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.853e-05/0.2326, allocations: 0 / 436.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.2327, allocations: 15.91 kB / 436.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2329, allocations: 47.8 kB / 436.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.2337, allocations: 247.5 kB / 436.8 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.2339, allocations: 267.3 kB / 437 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.155e-05/0.234, allocations: 12 kB / 437 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2341, allocations: 43.83 kB / 437.1 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.2343, allocations: 71.73 kB / 437.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.2343, allocations: 4 kB / 437.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006288/0.2349, allocations: 407.2 kB / 437.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.387e-05/0.235, allocations: 39.89 kB / 437.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.472e-05/0.2351, allocations: 61.44 kB / 437.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000758/0.2358, allocations: 0.5242 MB / 438.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2359, allocations: 0 / 438.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2359, allocations: 3.938 kB / 438.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2359, allocations: 4 kB / 438.2 MB, free: 14.21 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.000509/0.2364, allocations: 444.8 kB / 438.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2364, allocations: 12.03 kB / 438.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.868e-05/0.2365, allocations: 12.75 kB / 438.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.2367, allocations: 192.1 kB / 438.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.2367, allocations: 4.375 kB / 438.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.2367, allocations: 8.125 kB / 438.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.2369, allocations: 89.66 kB / 438.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2369, allocations: 8 kB / 438.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.237, allocations: 0 / 438.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.237, allocations: 0 / 438.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.412e-05/0.2371, allocations: 51.97 kB / 439 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.2372, allocations: 189.4 kB / 439.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.2373, allocations: 134.5 kB / 439.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.848e-05/0.2374, allocations: 116.8 kB / 439.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.2374, allocations: 0 / 439.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.2375, allocations: 42.56 kB / 439.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.152e-06/0.2375, allocations: 0 / 439.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004087/0.2379, allocations: 291.6 kB / 439.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.238, allocations: 93.11 kB / 439.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.163e-05/0.2381, allocations: 140.9 kB / 440 MB, free: 12.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.2381, allocations: 25.7 kB / 440 MB, free: 12.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.2381, allocations: 92.47 kB / 440.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.562e-05/0.2382, allocations: 63 kB / 440.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.2382, allocations: 25.69 kB / 440.2 MB, free: 11.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.439e-05/0.2383, allocations: 322.8 kB / 440.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.565e-05/0.2384, allocations: 59.97 kB / 440.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.623e-05/0.2384, allocations: 55.97 kB / 440.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.2386, allocations: 232.5 kB / 440.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2386, allocations: 0 / 440.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00021/0.2388, allocations: 223 kB / 441.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.028e-05/0.2389, allocations: 57.67 kB / 441.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2389, allocations: 0 / 441.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.2389, allocations: 4.062 kB / 441.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.2389, allocations: 0 / 441.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.2389, allocations: 0 / 441.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.415e-05/0.239, allocations: 11.94 kB / 441.1 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.239, allocations: 4 kB / 441.1 MB, free: 11 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.0001068/0.2391, allocations: 187.4 kB / 441.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.2392, allocations: 15.81 kB / 441.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.432e-05/0.2392, allocations: 13.19 kB / 441.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2392, allocations: 0 / 441.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2392, allocations: 4 kB / 441.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2392, allocations: 0 / 441.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.322e-05/0.2393, allocations: 197.5 kB / 441.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2393, allocations: 0 / 441.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-07/0.2393, allocations: 0 / 441.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2393, allocations: 0 / 441.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.2394, allocations: 8 kB / 441.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2394, allocations: 0 / 441.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.2394, allocations: 4 kB / 441.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.2397, allocations: 399 kB / 441.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.2398, allocations: 96.84 kB / 442 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.2398, allocations: 4 kB / 442 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.008e-05/0.2399, allocations: 4 kB / 442 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.2399, allocations: 4 kB / 442 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.2399, allocations: 11.94 kB / 442.1 MB, free: 9.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.352e-05/0.24, allocations: 103.2 kB / 442.2 MB, free: 9.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.24, allocations: 0 / 442.2 MB, free: 9.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.2404, allocations: 139.9 kB / 442.3 MB, free: 9.73 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.0004311/0.2408, allocations: 186.7 kB / 442.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004134/0.2412, allocations: 0.5656 MB / 443 MB, free: 8.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2413, allocations: 0 / 443 MB, free: 8.961 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.2415, allocations: 467.3 kB / 443.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.2418, allocations: 27.81 kB / 443.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004945/0.2423, allocations: 433.6 kB / 443.9 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.2424, allocations: 0.716 MB / 444.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.001e-05/0.2425, allocations: 7.984 kB / 444.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.2425, allocations: 7.438 kB / 444.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2425, allocations: 0 / 444.7 MB, free: 7.262 MB / 318.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].