Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008262/0.0008262, allocations: 97.83 kB / 16.31 MB, free: 5.992 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.0008793/0.0008792, allocations: 184.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2956/0.2956, allocations: 38.07 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003051, allocations: 8 kB / 400.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2857, allocations: 59.16 MB / 459.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002124/0.2879, allocations: 1.795 MB / 461 MB, free: 28.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.2895, allocations: 0.9938 MB / 462 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.133e-05/0.2895, allocations: 0 / 462 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.2897, allocations: 14.03 kB / 462 MB, free: 28.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.917e-05/0.2898, allocations: 19.5 kB / 462 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007069/0.2905, allocations: 198.8 kB / 462.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.2906, allocations: 59.25 kB / 462.3 MB, free: 28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.509e-05/0.2907, allocations: 7.875 kB / 462.3 MB, free: 27.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.608e-05/0.2908, allocations: 31.08 kB / 462.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.14e-05/0.2909, allocations: 37.31 kB / 462.4 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.2909, allocations: 2.281 kB / 462.4 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005542/0.2914, allocations: 289 kB / 462.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.2915, allocations: 32.78 kB / 462.7 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.961e-05/0.2916, allocations: 37.27 kB / 462.7 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006504/0.2922, allocations: 383.4 kB / 463.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2922, allocations: 4 kB / 463.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2922, allocations: 0 / 463.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2922, allocations: 1 kB / 463.1 MB, free: 27.81 MB / 350.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.0004937/0.2927, allocations: 455.6 kB / 463.5 MB, free: 27.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.2928, allocations: 8.906 kB / 463.6 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.278e-05/0.2929, allocations: 63.38 kB / 463.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.293, allocations: 15.16 kB / 463.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.2932, allocations: 193.4 kB / 463.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.2932, allocations: 8.375 kB / 463.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.2932, allocations: 12.84 kB / 463.8 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.2935, allocations: 136.1 kB / 464 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.2936, allocations: 3.938 kB / 464 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.2936, allocations: 1.625 kB / 464 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2936, allocations: 2.062 kB / 464 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.2938, allocations: 82.84 kB / 464.1 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004949/0.2943, allocations: 352.6 kB / 464.4 MB, free: 26.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.2945, allocations: 129.1 kB / 464.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.2945, allocations: 1.094 kB / 464.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.2945, allocations: 40.17 kB / 464.6 MB, free: 26.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.123e-06/0.2945, allocations: 0 / 464.6 MB, free: 26.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006608/0.2952, allocations: 377.1 kB / 464.9 MB, free: 26.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.2953, allocations: 92.75 kB / 465 MB, free: 26.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.2954, allocations: 140.4 kB / 465.2 MB, free: 26.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.2954, allocations: 27.17 kB / 465.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.736e-05/0.2955, allocations: 113.5 kB / 465.3 MB, free: 26.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.2955, allocations: 57.02 kB / 465.4 MB, free: 25.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.2955, allocations: 0 / 465.4 MB, free: 25.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.2956, allocations: 330.6 kB / 465.7 MB, free: 25.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.481e-05/0.2957, allocations: 53.45 kB / 465.7 MB, free: 25.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.974e-05/0.2958, allocations: 61.56 kB / 465.8 MB, free: 25.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.296, allocations: 116.3 kB / 465.9 MB, free: 25.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.296, allocations: 0 / 465.9 MB, free: 25.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003063/0.2963, allocations: 221.5 kB / 466.1 MB, free: 25.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.2964, allocations: 55.77 kB / 466.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2964, allocations: 1 kB / 466.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.2964, allocations: 0 / 466.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.2964, allocations: 1.375 kB / 466.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.2964, allocations: 0.7969 kB / 466.2 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.2965, allocations: 12.97 kB / 466.2 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.2965, allocations: 7.219 kB / 466.2 MB, free: 25.43 MB / 350.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.0001538/0.2967, allocations: 188.6 kB / 466.4 MB, free: 25.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.2967, allocations: 12.67 kB / 466.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.766e-05/0.2968, allocations: 9 kB / 466.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2968, allocations: 0.7188 kB / 466.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2968, allocations: 0 / 466.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.2968, allocations: 2.219 kB / 466.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.297, allocations: 225.3 kB / 466.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.297, allocations: 0 / 466.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-06/0.297, allocations: 4.734 kB / 466.6 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.297, allocations: 4.969 kB / 466.6 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.2971, allocations: 8.75 kB / 466.6 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2971, allocations: 1.156 kB / 466.7 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2971, allocations: 4 kB / 466.7 MB, free: 25.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.2976, allocations: 456.5 kB / 467.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.356e-05/0.2977, allocations: 85.89 kB / 467.2 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.2977, allocations: 4.109 kB / 467.2 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.583e-05/0.2978, allocations: 4.125 kB / 467.2 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.2978, allocations: 10.61 kB / 467.2 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.2978, allocations: 11.14 kB / 467.2 MB, free: 24.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.966e-05/0.2979, allocations: 99.69 kB / 467.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2979, allocations: 0 / 467.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000665/0.2986, allocations: 145.9 kB / 467.5 MB, free: 24.59 MB / 350.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.001384/0.3, allocations: 1.223 MB / 468.7 MB, free: 23.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006063/0.3006, allocations: 0.5623 MB / 469.2 MB, free: 23.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3006, allocations: 0 / 469.2 MB, free: 23.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.301, allocations: 471.8 kB / 469.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.3012, allocations: 16.17 kB / 469.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.3032, allocations: 1.335 MB / 471 MB, free: 22.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.3034, allocations: 0.7342 MB / 471.8 MB, free: 21.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.237e-05/0.3034, allocations: 2.219 kB / 471.8 MB, free: 21.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.346e-05/0.3035, allocations: 35.48 kB / 471.8 MB, free: 21.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3035, allocations: 0 / 471.8 MB, free: 21.77 MB / 350.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].