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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_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.0009292/0.0009292, allocations: 95.94 kB / 16.3 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.001293/0.001293, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.775/1.775, allocations: 205.4 MB / 223.4 MB, free: 5.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3485/0.3485, allocations: 38.04 MB / 309.7 MB, free: 9.012 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.0005355/0.0005355, allocations: 12 kB / 376.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1425, allocations: 56.34 MB / 432.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.00271/0.1453, allocations: 1.789 MB / 434.7 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.1482, allocations: 1.951 MB / 436.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.297e-05/0.1483, allocations: 0 / 436.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.1485, allocations: 11.92 kB / 436.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.105e-05/0.1485, allocations: 19.95 kB / 436.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.1502, allocations: 0.5851 MB / 437.3 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.453e-05/0.1503, allocations: 47.94 kB / 437.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.977e-05/0.1503, allocations: 11.97 kB / 437.3 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.832e-05/0.1504, allocations: 27.84 kB / 437.4 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.1505, allocations: 35.91 kB / 437.4 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1505, allocations: 4 kB / 437.4 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001437/0.152, allocations: 0.9671 MB / 438.4 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.273e-05/0.152, allocations: 23.91 kB / 438.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.1521, allocations: 41.64 kB / 438.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1531, allocations: 0.9124 MB / 439.3 MB, free: 432 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1532, allocations: 0 / 439.3 MB, free: 432 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1532, allocations: 4 kB / 439.3 MB, free: 428 kB / 366.1 MB Notification: Performance of Transformations before backend: time 9.487e-06/0.1532, allocations: 0 / 439.3 MB, free: 428 kB / 366.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.0006475/0.1538, allocations: 0.5238 MB / 439.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.1539, allocations: 12.03 kB / 439.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.305e-05/0.154, allocations: 62.3 kB / 439.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.154, allocations: 15.72 kB / 440 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.1543, allocations: 198.8 kB / 440.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1543, allocations: 12 kB / 440.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.1543, allocations: 4 kB / 440.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.1546, allocations: 134.2 kB / 440.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1546, allocations: 0 / 440.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.1546, allocations: 3.938 kB / 440.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1546, allocations: 0 / 440.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.1547, allocations: 76.12 kB / 440.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004361/0.1552, allocations: 360.9 kB / 440.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.1553, allocations: 74.55 kB / 440.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-06/0.1553, allocations: 0 / 440.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1553, allocations: 30.56 kB / 440.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 8.12e-07/0.1553, allocations: 0 / 440.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004162/0.1558, allocations: 316.4 kB / 441.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.1558, allocations: 93.05 kB / 441.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.156, allocations: 150.1 kB / 441.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.156, allocations: 25.7 kB / 441.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.1561, allocations: 119.9 kB / 441.5 MB, free: 14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.1561, allocations: 39.36 kB / 441.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.1561, allocations: 0 / 441.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1563, allocations: 322.8 kB / 441.9 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.745e-05/0.1564, allocations: 48 kB / 441.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.863e-05/0.1564, allocations: 35.98 kB / 442 MB, free: 13.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.926e-05/0.1565, allocations: 85.66 kB / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1565, allocations: 0 / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002055/0.1568, allocations: 175.1 kB / 442.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.224e-05/0.1568, allocations: 61.52 kB / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1568, allocations: 0 / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1569, allocations: 0 / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1569, allocations: 0 / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1569, allocations: 0 / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.1569, allocations: 15.95 kB / 442.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.157, allocations: 4 kB / 442.3 MB, free: 13.19 MB / 382.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.0001286/0.1571, allocations: 175.5 kB / 442.5 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.1571, allocations: 11.81 kB / 442.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.1572, allocations: 16.83 kB / 442.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1572, allocations: 0 / 442.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1572, allocations: 0 / 442.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1572, allocations: 4 kB / 442.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.1574, allocations: 205.5 kB / 442.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1574, allocations: 4 kB / 442.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1574, allocations: 0 / 442.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1574, allocations: 4 kB / 442.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.1575, allocations: 8 kB / 442.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1575, allocations: 0 / 442.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1575, allocations: 0 / 442.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.1578, allocations: 376.8 kB / 443.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.1579, allocations: 81.02 kB / 443.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.1579, allocations: 12.03 kB / 443.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.158, allocations: 11.84 kB / 443.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.1581, allocations: 3.984 kB / 443.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1581, allocations: 8 kB / 443.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.139e-05/0.1581, allocations: 111.2 kB / 443.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1582, allocations: 0 / 443.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008765/0.159, allocations: 327.9 kB / 443.6 MB, free: 11.75 MB / 382.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.001514/0.1606, allocations: 1.273 MB / 444.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.161, allocations: 339.2 kB / 445.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.161, allocations: 0 / 445.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.1612, allocations: 251.3 kB / 445.5 MB, free: 9.848 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.1615, allocations: 20.14 kB / 445.5 MB, free: 9.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.1632, allocations: 1.277 MB / 446.8 MB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.1635, allocations: 0.7355 MB / 447.5 MB, free: 7.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.681e-05/0.1636, allocations: 4 kB / 447.5 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.1636, allocations: 35.42 kB / 447.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1636, allocations: 0 / 447.5 MB, free: 7.699 MB / 382.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).