Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.001524, allocations: 188.8 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 98.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2557/0.2557, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004671, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1107, allocations: 56.34 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002861/0.1136, allocations: 1.76 MB / 480.9 MB, free: 156 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00404/0.1177, allocations: 1.932 MB / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.349e-05/0.1178, allocations: 0 / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1179, allocations: 11.92 kB / 482.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.366e-05/0.118, allocations: 23.91 kB / 482.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.1203, allocations: 0.589 MB / 483.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.979e-05/0.1205, allocations: 43.92 kB / 483.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.862e-05/0.1205, allocations: 192 / 483.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.391e-05/0.1206, allocations: 31.84 kB / 483.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.1207, allocations: 27.91 kB / 483.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.1207, allocations: 0 / 483.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.1228, allocations: 0.9827 MB / 484.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.95e-05/0.1229, allocations: 23.91 kB / 484.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.1229, allocations: 33.64 kB / 484.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.1245, allocations: 0.9125 MB / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1245, allocations: 0 / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1245, allocations: 0 / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1246, allocations: 0 / 485.5 MB, free: 11.52 MB / 330.7 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.0007249/0.1253, allocations: 0.5123 MB / 486 MB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1253, allocations: 8.031 kB / 486 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.57e-05/0.1254, allocations: 38.56 kB / 486.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.1254, allocations: 7.906 kB / 486.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.1257, allocations: 186.9 kB / 486.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1257, allocations: 0 / 486.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.1257, allocations: 7.984 kB / 486.3 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.1259, allocations: 69.61 kB / 486.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.1259, allocations: 0 / 486.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1259, allocations: 3.953 kB / 486.3 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1259, allocations: 0 / 486.3 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.67e-05/0.126, allocations: 31.98 kB / 486.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.1262, allocations: 169.7 kB / 486.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.1264, allocations: 58.56 kB / 486.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.1264, allocations: 0 / 486.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1264, allocations: 30.56 kB / 486.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.502e-06/0.1264, allocations: 0 / 486.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005114/0.127, allocations: 288.4 kB / 486.9 MB, free: 9.918 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.127, allocations: 93.09 kB / 487 MB, free: 9.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.1272, allocations: 137.5 kB / 487.1 MB, free: 9.668 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.1273, allocations: 25.7 kB / 487.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/0.1273, allocations: 154.6 kB / 487.3 MB, free: 9.484 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.1274, allocations: 39.39 kB / 487.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-06/0.1274, allocations: 0 / 487.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1276, allocations: 322.8 kB / 487.7 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.836e-05/0.1277, allocations: 35.98 kB / 487.7 MB, free: 9.086 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.905e-05/0.1277, allocations: 27.98 kB / 487.7 MB, free: 9.059 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.1279, allocations: 82.14 kB / 487.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1279, allocations: 0 / 487.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002823/0.1282, allocations: 159.1 kB / 487.9 MB, free: 8.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.1283, allocations: 49.67 kB / 488 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1283, allocations: 0 / 488 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1283, allocations: 0 / 488 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-06/0.1283, allocations: 0 / 488 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1283, allocations: 0 / 488 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.635e-05/0.1284, allocations: 7.953 kB / 488 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.1284, allocations: 4 kB / 488 MB, free: 8.738 MB / 330.7 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.0001802/0.1286, allocations: 167.5 kB / 488.2 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.1287, allocations: 15.89 kB / 488.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.1287, allocations: 4.719 kB / 488.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1287, allocations: 0 / 488.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1287, allocations: 4 kB / 488.2 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1287, allocations: 0 / 488.2 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.1289, allocations: 181.5 kB / 488.4 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1289, allocations: 0 / 488.4 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.1289, allocations: 0 / 488.4 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1289, allocations: 4 kB / 488.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.129, allocations: 11.98 kB / 488.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.129, allocations: 0 / 488.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.129, allocations: 0 / 488.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.1295, allocations: 290.5 kB / 488.7 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.1296, allocations: 88.89 kB / 488.8 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.1296, allocations: 4 kB / 488.8 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.837e-05/0.1297, allocations: 4 kB / 488.8 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.1297, allocations: 4.031 kB / 488.8 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1297, allocations: 4 kB / 488.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.021e-05/0.1298, allocations: 103.2 kB / 488.9 MB, free: 7.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1299, allocations: 0 / 488.9 MB, free: 7.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001113/0.131, allocations: 315.9 kB / 489.2 MB, free: 7.457 MB / 330.7 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.001966/0.133, allocations: 1.086 MB / 490.3 MB, free: 6.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.1335, allocations: 299.2 kB / 490.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1335, allocations: 0 / 490.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.1338, allocations: 223.3 kB / 490.8 MB, free: 5.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.134, allocations: 8 kB / 490.8 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.136, allocations: 1.007 MB / 491.8 MB, free: 4.734 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1363, allocations: 0.7121 MB / 492.5 MB, free: 3.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.928e-05/0.1364, allocations: 23.42 kB / 492.5 MB, free: 3.973 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1364, allocations: 3.938 kB / 492.5 MB, free: 3.969 MB / 330.7 MB [CodegenCppCommonOld.tpl:1224:14-1224: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).