Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001117/0.001117, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001242/0.001242, allocations: 182.8 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.284/1.284, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2873/0.2873, allocations: 38.07 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003081, allocations: 8 kB / 400.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3001, allocations: 59.17 MB / 459.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002064/0.3022, allocations: 1.79 MB / 461 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.3047, allocations: 1.908 MB / 462.9 MB, free: 27.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.929e-05/0.3048, allocations: 0 / 462.9 MB, free: 27.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.3049, allocations: 9.969 kB / 462.9 MB, free: 27.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.828e-05/0.305, allocations: 19.97 kB / 462.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.3066, allocations: 0.5814 MB / 463.5 MB, free: 27.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.966e-05/0.3068, allocations: 47.41 kB / 463.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.3068, allocations: 3.125 kB / 463.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.899e-05/0.3069, allocations: 36.11 kB / 463.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.324e-05/0.307, allocations: 37.5 kB / 463.7 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.307, allocations: 2.469 kB / 463.7 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.3088, allocations: 0.9651 MB / 464.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.118e-05/0.3089, allocations: 29.3 kB / 464.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.949e-05/0.3089, allocations: 36.73 kB / 464.7 MB, free: 27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.3105, allocations: 0.9126 MB / 465.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3106, allocations: 4 kB / 465.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3106, allocations: 0 / 465.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.3106, allocations: 0 / 465.6 MB, free: 26.89 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006764/0.3113, allocations: 0.5376 MB / 466.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3113, allocations: 8.938 kB / 466.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.632e-05/0.3114, allocations: 64.05 kB / 466.2 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.3115, allocations: 14.38 kB / 466.2 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.3116, allocations: 207.4 kB / 466.4 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.3117, allocations: 2.094 kB / 466.4 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.3117, allocations: 13 kB / 466.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.3119, allocations: 118.6 kB / 466.6 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.3119, allocations: 0 / 466.6 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.312, allocations: 1.062 kB / 466.6 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.312, allocations: 1.656 kB / 466.6 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.3121, allocations: 75.27 kB / 466.6 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.3125, allocations: 364.9 kB / 467 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.112e-05/0.3126, allocations: 72.19 kB / 467.1 MB, free: 25.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.3126, allocations: 5.141 kB / 467.1 MB, free: 25.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.3126, allocations: 32.66 kB / 467.1 MB, free: 25.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.42e-07/0.3126, allocations: 0 / 467.1 MB, free: 25.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004007/0.3131, allocations: 309.2 kB / 467.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.3131, allocations: 96.41 kB / 467.5 MB, free: 25.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.3132, allocations: 158.5 kB / 467.6 MB, free: 25.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.3133, allocations: 25.7 kB / 467.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.3133, allocations: 115.6 kB / 467.8 MB, free: 25.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/0.3134, allocations: 49.5 kB / 467.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.3134, allocations: 3.938 kB / 467.8 MB, free: 25.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.856e-05/0.3135, allocations: 326.4 kB / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.975e-05/0.3135, allocations: 38 kB / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.684e-05/0.3136, allocations: 40.91 kB / 468.2 MB, free: 24.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.748e-05/0.3137, allocations: 83.61 kB / 468.3 MB, free: 24.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3137, allocations: 1.75 kB / 468.3 MB, free: 24.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002253/0.3139, allocations: 180.3 kB / 468.5 MB, free: 24.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.524e-05/0.314, allocations: 52.25 kB / 468.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.314, allocations: 0 / 468.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.314, allocations: 1.188 kB / 468.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.018e-06/0.314, allocations: 5.266 kB / 468.5 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3141, allocations: 1.188 kB / 468.5 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.454e-05/0.3141, allocations: 6.469 kB / 468.6 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.3142, allocations: 9.75 kB / 468.6 MB, free: 24.54 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.0001163/0.3143, allocations: 172.2 kB / 468.7 MB, free: 24.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.3143, allocations: 12.47 kB / 468.7 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.82e-05/0.3143, allocations: 18.14 kB / 468.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.3143, allocations: 0 / 468.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3144, allocations: 1.219 kB / 468.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3144, allocations: 0 / 468.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.3146, allocations: 212.1 kB / 469 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3146, allocations: 1.5 kB / 469 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.633e-06/0.3146, allocations: 4.797 kB / 469 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3146, allocations: 0 / 469 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.3146, allocations: 4.312 kB / 469 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3146, allocations: 4.75 kB / 469 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3146, allocations: 0 / 469 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.315, allocations: 364.3 kB / 469.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.315, allocations: 88.2 kB / 469.4 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.315, allocations: 2.875 kB / 469.4 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.077e-05/0.3151, allocations: 11.47 kB / 469.4 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.3151, allocations: 14.02 kB / 469.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3152, allocations: 6.156 kB / 469.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.507e-05/0.3152, allocations: 112.3 kB / 469.6 MB, free: 23.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3152, allocations: 0 / 469.6 MB, free: 23.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001729/0.317, allocations: 330.1 kB / 469.9 MB, free: 23.7 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.002019/0.319, allocations: 1.269 MB / 471.2 MB, free: 22.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005417/0.3196, allocations: 342.1 kB / 471.5 MB, free: 22.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3196, allocations: 0 / 471.5 MB, free: 22.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.3199, allocations: 259.4 kB / 471.8 MB, free: 22.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3202, allocations: 20.41 kB / 471.8 MB, free: 22.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.3223, allocations: 1.26 MB / 473 MB, free: 21.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3225, allocations: 0.7326 MB / 473.8 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.341e-05/0.3226, allocations: 7.594 kB / 473.8 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.951e-05/0.3226, allocations: 40.08 kB / 473.8 MB, free: 21.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3226, allocations: 0 / 473.8 MB, free: 21.18 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]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).