Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008977/0.0008975, allocations: 91.2 kB / 16.65 MB, free: 6.352 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.001007/0.001008, allocations: 180.2 kB / 17.56 MB, free: 5.949 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.508/1.508, 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.1897/0.1897, allocations: 38.05 MB / 310.1 MB, free: 5.926 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.0005505/0.0005505, allocations: 16 kB / 377.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2442, allocations: 56.33 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.001993/0.2462, allocations: 1.859 MB / 435.3 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.2488, allocations: 2.164 MB / 437.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.589e-05/0.2489, allocations: 4 kB / 437.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.2491, allocations: 11.86 kB / 437.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.2492, allocations: 47.8 kB / 437.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.2512, allocations: 0.6632 MB / 438.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.2514, allocations: 191.4 kB / 438.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.408e-05/0.2514, allocations: 0 / 438.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.385e-05/0.2515, allocations: 35.89 kB / 438.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.34e-05/0.2516, allocations: 59.75 kB / 438.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.2516, allocations: 4 kB / 438.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.2532, allocations: 1.224 MB / 439.7 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.2532, allocations: 27.91 kB / 439.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.949e-05/0.2533, allocations: 69.38 kB / 439.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.2547, allocations: 1.276 MB / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2547, allocations: 0 / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2547, allocations: 0 / 441.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.2547, 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007633/0.2555, allocations: 0.5318 MB / 441.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.2556, allocations: 12.03 kB / 441.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.2556, allocations: 8.844 kB / 441.7 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.2558, allocations: 196.1 kB / 441.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.2558, allocations: 4.125 kB / 441.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.2558, allocations: 0 / 441.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.256, allocations: 77.59 kB / 441.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.256, allocations: 3.938 kB / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.256, allocations: 0 / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.256, allocations: 0 / 441.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.941e-05/0.2561, allocations: 47.97 kB / 442 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001174/0.2562, allocations: 173.6 kB / 442.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.201e-05/0.2563, allocations: 78.48 kB / 442.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.96e-05/0.2564, allocations: 60.86 kB / 442.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.2564, allocations: 0 / 442.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.2564, allocations: 34.5 kB / 442.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 8.71e-07/0.2564, allocations: 0 / 442.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002976/0.2567, allocations: 223.5 kB / 442.5 MB, free: 9.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.2568, allocations: 93.09 kB / 442.6 MB, free: 9.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.158e-05/0.2569, allocations: 154.1 kB / 442.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.2569, allocations: 25.7 kB / 442.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.983e-05/0.2569, allocations: 96.38 kB / 442.9 MB, free: 9.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.077e-05/0.257, allocations: 43.3 kB / 442.9 MB, free: 8.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-05/0.257, allocations: 21.7 kB / 443 MB, free: 8.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/0.257, allocations: 322.8 kB / 443.3 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.706e-05/0.2571, allocations: 40.02 kB / 443.3 MB, free: 8.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.292e-05/0.2571, allocations: 47.91 kB / 443.4 MB, free: 8.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.2573, allocations: 179.5 kB / 443.5 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2573, allocations: 3.938 kB / 443.6 MB, free: 8.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001611/0.2575, allocations: 175.2 kB / 443.7 MB, free: 8.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.2575, allocations: 49.67 kB / 443.8 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2575, allocations: 0 / 443.8 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2575, allocations: 0 / 443.8 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.2575, allocations: 4 kB / 443.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.2575, allocations: 0 / 443.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.058e-05/0.2576, allocations: 8.062 kB / 443.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.2576, allocations: 4 kB / 443.8 MB, free: 8.09 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.3e-05/0.2577, allocations: 175.4 kB / 444 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.2577, allocations: 15.81 kB / 444 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.342e-05/0.2577, allocations: 8.844 kB / 444 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2578, allocations: 3.938 kB / 444 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2578, allocations: 0 / 444 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2578, allocations: 3.984 kB / 444 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.141e-05/0.2579, allocations: 209.3 kB / 444.2 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2579, allocations: 4 kB / 444.2 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.313e-06/0.2579, allocations: 4 kB / 444.2 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2579, allocations: 4 kB / 444.2 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2579, allocations: 4 kB / 444.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2579, allocations: 0 / 444.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2579, allocations: 0 / 444.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.2582, allocations: 294.5 kB / 444.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.241e-05/0.2582, allocations: 88.92 kB / 444.6 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.2582, allocations: 4.031 kB / 444.6 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.772e-05/0.2583, allocations: 4 kB / 444.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.847e-05/0.2583, allocations: 8 kB / 444.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.2583, allocations: 4 kB / 444.6 MB, free: 7.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.317e-05/0.2584, allocations: 115.1 kB / 444.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2584, allocations: 0 / 444.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008495/0.2592, allocations: 335.9 kB / 445 MB, free: 6.723 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.001045/0.2603, allocations: 374.3 kB / 445.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002839/0.2606, allocations: 335.3 kB / 445.7 MB, free: 6.008 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2606, allocations: 0 / 445.7 MB, free: 6.008 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.2607, allocations: 255.3 kB / 446 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.261, allocations: 19.94 kB / 446 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/0.2614, allocations: 397.2 kB / 446.4 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.2615, allocations: 0.7199 MB / 447.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.56e-05/0.2616, allocations: 4 kB / 447.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.616e-06/0.2616, allocations: 7.438 kB / 447.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2616, allocations: 0 / 447.1 MB, free: 4.559 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].