Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001499/0.001504, allocations: 184.4 kB / 15.77 MB, free: 6.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, 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.001085/0.001085, allocations: 82.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2687/0.2687, allocations: 38.07 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004543, allocations: 8 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 56.34 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002987/0.1155, allocations: 1.764 MB / 480.9 MB, free: 152 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00421/0.1198, allocations: 1.936 MB / 482.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.281e-05/0.1199, allocations: 0 / 482.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.1201, allocations: 15.92 kB / 482.9 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.266e-05/0.1202, allocations: 11.97 kB / 482.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002758/0.123, allocations: 0.5968 MB / 483.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.1231, allocations: 39.92 kB / 483.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.118e-05/0.1232, allocations: 8.188 kB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.8e-05/0.1233, allocations: 31.84 kB / 483.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.446e-05/0.1234, allocations: 31.91 kB / 483.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.1234, allocations: 0 / 483.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002586/0.126, allocations: 0.9827 MB / 484.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.755e-05/0.1261, allocations: 27.92 kB / 484.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.599e-05/0.1262, allocations: 37.64 kB / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002292/0.1285, allocations: 0.9358 MB / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1286, allocations: 0 / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1286, allocations: 0 / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.1286, allocations: 0 / 485.6 MB, free: 11.47 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001402/0.13, allocations: 0.5512 MB / 486.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.1301, allocations: 8.031 kB / 486.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.183e-05/0.1302, allocations: 34.56 kB / 486.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.559e-05/0.1303, allocations: 19.81 kB / 486.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.1306, allocations: 186.8 kB / 486.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.1307, allocations: 4 kB / 486.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.1307, allocations: 4 kB / 486.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.1311, allocations: 101.5 kB / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1311, allocations: 0 / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.1311, allocations: 3.953 kB / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1311, allocations: 4 kB / 486.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1313, allocations: 59.97 kB / 486.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002232/0.1315, allocations: 193.3 kB / 486.7 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.1317, allocations: 106.5 kB / 486.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.1317, allocations: 3.984 kB / 486.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1318, allocations: 34.5 kB / 486.9 MB, free: 9.996 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.1318, allocations: 0 / 486.9 MB, free: 9.996 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007521/0.1325, allocations: 400.2 kB / 487.2 MB, free: 9.574 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1327, allocations: 105 kB / 487.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.1329, allocations: 151.1 kB / 487.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.133, allocations: 25.7 kB / 487.5 MB, free: 9.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1331, allocations: 163 kB / 487.7 MB, free: 9.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.1333, allocations: 82.8 kB / 487.8 MB, free: 9.023 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-06/0.1333, allocations: 0 / 487.8 MB, free: 9.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1335, allocations: 322.8 kB / 488.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.1337, allocations: 59.97 kB / 488.1 MB, free: 8.641 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.1339, allocations: 60.78 kB / 488.2 MB, free: 8.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.1342, allocations: 129.7 kB / 488.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1342, allocations: 0 / 488.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006366/0.1349, allocations: 223.1 kB / 488.5 MB, free: 8.219 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.135, allocations: 73.72 kB / 488.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.135, allocations: 0 / 488.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1351, allocations: 0 / 488.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.1351, allocations: 3.938 kB / 488.6 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.1351, allocations: 7.984 kB / 488.6 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.1353, allocations: 15.8 kB / 488.6 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.1353, allocations: 4 kB / 488.6 MB, free: 8.109 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.0003563/0.1357, allocations: 191.5 kB / 488.8 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.1358, allocations: 15.81 kB / 488.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.1358, allocations: 17.19 kB / 488.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1359, allocations: 0 / 488.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.1359, allocations: 7.984 kB / 488.9 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1359, allocations: 0 / 488.9 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.1362, allocations: 201.5 kB / 489.1 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1362, allocations: 0 / 489.1 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-06/0.1362, allocations: 0 / 489.1 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1362, allocations: 4 kB / 489.1 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.1363, allocations: 8 kB / 489.1 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1363, allocations: 3.938 kB / 489.1 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1363, allocations: 0 / 489.1 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.1377, allocations: 0.514 MB / 489.6 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/0.1377, allocations: 92.86 kB / 489.7 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.1378, allocations: 4 kB / 489.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.447e-05/0.1379, allocations: 4 kB / 489.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.1379, allocations: 11.98 kB / 489.7 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.138, allocations: 7.938 kB / 489.7 MB, free: 6.934 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.1381, allocations: 119.1 kB / 489.8 MB, free: 6.816 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1381, allocations: 4.031 kB / 489.8 MB, free: 6.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001669/0.1398, allocations: 327.9 kB / 490.2 MB, free: 6.492 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.003842/0.1437, allocations: 1.316 MB / 491.5 MB, free: 5.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.1454, allocations: 0.7061 MB / 492.2 MB, free: 4.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.1454, allocations: 0 / 492.2 MB, free: 4.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.1466, allocations: 0.5735 MB / 492.7 MB, free: 3.836 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.1469, allocations: 8 kB / 492.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.1515, allocations: 1.491 MB / 494.2 MB, free: 2.281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.1521, allocations: 0.7319 MB / 495 MB, free: 1.523 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.998e-05/0.1522, allocations: 31.42 kB / 495 MB, free: 1.492 MB / 330.7 MB Notification: Performance of SimCode: time 1.452e-06/0.1522, allocations: 0 / 495 MB, free: 1.492 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).