Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.0009079/0.0009079, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.0009002/0.0009001, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.514/1.514, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 309.7 MB, free: 6.133 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.0004857/0.0004857, allocations: 16 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.245, allocations: 56.32 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.001897/0.2469, allocations: 1.761 MB / 434.7 MB, free: 17.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.2492, allocations: 1.932 MB / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.706e-05/0.2493, allocations: 0 / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.2494, allocations: 15.92 kB / 436.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.169e-05/0.2495, allocations: 15.97 kB / 436.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.2512, allocations: 0.5993 MB / 437.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.191e-05/0.2512, allocations: 31.94 kB / 437.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.313e-05/0.2513, allocations: 12.19 kB / 437.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.75e-05/0.2514, allocations: 19.91 kB / 437.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.739e-05/0.2514, allocations: 35.84 kB / 437.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.2515, allocations: 4 kB / 437.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.2526, allocations: 0.9827 MB / 438.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.92e-05/0.2526, allocations: 15.94 kB / 438.3 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.871e-05/0.2527, allocations: 33.64 kB / 438.4 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007757/0.2534, allocations: 0.9144 MB / 439.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2535, allocations: 0 / 439.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2535, allocations: 0 / 439.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.2535, allocations: 4 kB / 439.3 MB, free: 12.41 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004857/0.254, allocations: 0.5084 MB / 439.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.254, allocations: 8.031 kB / 439.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.2541, allocations: 50.42 kB / 439.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.2541, allocations: 7.906 kB / 439.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.2542, allocations: 182.9 kB / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.2543, allocations: 0 / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.2543, allocations: 0 / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.2544, allocations: 69.67 kB / 440.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.2544, allocations: 4 kB / 440.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.2544, allocations: 3.953 kB / 440.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.2544, allocations: 0 / 440.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.434e-05/0.2545, allocations: 35.92 kB / 440.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001099/0.2546, allocations: 165.7 kB / 440.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.629e-05/0.2547, allocations: 62.55 kB / 440.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.662e-06/0.2547, allocations: 0 / 440.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.2547, allocations: 38.56 kB / 440.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 7.61e-07/0.2547, allocations: 0 / 440.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002853/0.255, allocations: 280.5 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.2551, allocations: 89.06 kB / 440.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.445e-05/0.2552, allocations: 141 kB / 440.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.2552, allocations: 25.7 kB / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.2552, allocations: 92.14 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.747e-05/0.2553, allocations: 35.45 kB / 441 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.2553, allocations: 0 / 441 MB, free: 10.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.811e-05/0.2553, allocations: 326.9 kB / 441.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.594e-05/0.2554, allocations: 27.98 kB / 441.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.169e-05/0.2554, allocations: 31.98 kB / 441.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.845e-05/0.2555, allocations: 81.67 kB / 441.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2555, allocations: 0 / 441.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001322/0.2556, allocations: 151.2 kB / 441.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.2557, allocations: 49.67 kB / 441.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2557, allocations: 3.938 kB / 441.7 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2557, allocations: 4 kB / 441.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.2557, allocations: 0 / 441.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2557, allocations: 8.047 kB / 441.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.342e-05/0.2558, allocations: 7.891 kB / 441.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.2558, allocations: 7.984 kB / 441.7 MB, free: 9.676 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.696e-05/0.2559, allocations: 175.4 kB / 441.9 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.2559, allocations: 11.81 kB / 441.9 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.356e-05/0.2559, allocations: 8.719 kB / 441.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2559, allocations: 0 / 441.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2559, allocations: 0 / 441.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2559, allocations: 0 / 441.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.136e-05/0.256, allocations: 181.6 kB / 442.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.256, allocations: 3.984 kB / 442.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.443e-06/0.256, allocations: 4 kB / 442.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.256, allocations: 0 / 442.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2561, allocations: 4 kB / 442.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2561, allocations: 0 / 442.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2561, allocations: 0 / 442.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.2563, allocations: 290.1 kB / 442.4 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.2563, allocations: 92.98 kB / 442.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.2564, allocations: 0 / 442.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.693e-05/0.2564, allocations: 7.938 kB / 442.5 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.005e-05/0.2564, allocations: 4 kB / 442.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.2564, allocations: 7.984 kB / 442.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.012e-05/0.2565, allocations: 103.2 kB / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2565, allocations: 0 / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006178/0.2571, allocations: 316 kB / 442.9 MB, free: 8.391 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 (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.0009986/0.2581, allocations: 1.074 MB / 444 MB, free: 7.281 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.2584, allocations: 295.2 kB / 444.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2584, allocations: 0 / 444.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.2585, allocations: 231.4 kB / 444.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001643/0.2587, allocations: 4 kB / 444.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2597, allocations: 0.9698 MB / 445.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.2599, allocations: 0.7082 MB / 446.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.134e-05/0.2599, allocations: 4 kB / 446.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.949e-05/0.2599, allocations: 23.42 kB / 446.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2599, allocations: 0 / 446.2 MB, free: 4.961 MB / 318.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).