Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001545/0.001549, allocations: 183 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 2.004/2.004, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001129/0.001129, allocations: 98.78 kB / 270.3 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.2577/0.2577, allocations: 38.07 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004516/0.0004516, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 56.34 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002979/0.116, allocations: 1.752 MB / 480.9 MB, free: 172 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004211/0.1203, allocations: 1.94 MB / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.246e-05/0.1203, allocations: 0 / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.1206, allocations: 15.92 kB / 482.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.915e-05/0.1206, allocations: 15.97 kB / 482.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.123, allocations: 0.5928 MB / 483.5 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 9.198e-05/0.1231, allocations: 43.86 kB / 483.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.027e-05/0.1232, allocations: 4.188 kB / 483.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.999e-05/0.1233, allocations: 27.84 kB / 483.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.511e-05/0.1234, allocations: 31.91 kB / 483.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.1234, allocations: 4 kB / 483.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002212/0.1256, allocations: 0.9749 MB / 484.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.706e-05/0.1257, allocations: 19.91 kB / 484.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.1257, allocations: 29.7 kB / 484.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.1273, allocations: 0.9008 MB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.1273, allocations: 0 / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1273, allocations: 4 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1273, allocations: 0 / 485.5 MB, free: 11.54 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000723/0.1281, allocations: 0.4967 MB / 486 MB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1281, allocations: 8.031 kB / 486 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.1282, allocations: 34.56 kB / 486 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.227e-05/0.1282, allocations: 4 kB / 486 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.1284, allocations: 186.8 kB / 486.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.1284, allocations: 4 kB / 486.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1285, allocations: 0 / 486.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.1286, allocations: 57.67 kB / 486.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.1287, allocations: 0 / 486.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.1287, allocations: 3.953 kB / 486.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1287, allocations: 0 / 486.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.898e-05/0.1288, allocations: 27.97 kB / 486.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.129, allocations: 165.7 kB / 486.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.1291, allocations: 50.5 kB / 486.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.1291, allocations: 0 / 486.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1291, allocations: 34.56 kB / 486.6 MB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.1292, allocations: 0 / 486.6 MB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004361/0.1296, allocations: 228.4 kB / 486.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.1297, allocations: 93 kB / 486.9 MB, free: 9.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.1298, allocations: 129.2 kB / 487 MB, free: 9.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.1299, allocations: 29.7 kB / 487 MB, free: 9.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.946e-05/0.1299, allocations: 154.6 kB / 487.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.13, allocations: 23.56 kB / 487.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.13, allocations: 4.031 kB / 487.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1302, allocations: 322.8 kB / 487.5 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.02e-05/0.1303, allocations: 19.98 kB / 487.5 MB, free: 9.246 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.288e-05/0.1303, allocations: 16.16 kB / 487.5 MB, free: 9.23 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.1304, allocations: 69.66 kB / 487.6 MB, free: 9.156 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1305, allocations: 0 / 487.6 MB, free: 9.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002284/0.1307, allocations: 115.7 kB / 487.7 MB, free: 9.031 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.1308, allocations: 49.62 kB / 487.8 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1308, allocations: 3.984 kB / 487.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1308, allocations: 4.062 kB / 487.8 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-06/0.1308, allocations: 0 / 487.8 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.1308, allocations: 7.922 kB / 487.8 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.687e-05/0.1309, allocations: 11.89 kB / 487.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.1309, allocations: 3.938 kB / 487.8 MB, free: 8.945 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.000151/0.1311, allocations: 155.5 kB / 488 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.1311, allocations: 11.89 kB / 488 MB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.703e-05/0.1312, allocations: 8.375 kB / 488 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1312, allocations: 0 / 488 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1312, allocations: 4 kB / 488 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1312, allocations: 0 / 488 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.1314, allocations: 169.5 kB / 488.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1314, allocations: 3.984 kB / 488.2 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-06/0.1314, allocations: 8 kB / 488.2 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1314, allocations: 0 / 488.2 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.1314, allocations: 4 kB / 488.2 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.1314, allocations: 4 kB / 488.2 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1315, allocations: 0 / 488.2 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004037/0.1319, allocations: 218.7 kB / 488.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.1319, allocations: 81.02 kB / 488.5 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.132, allocations: 4 kB / 488.5 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.587e-05/0.132, allocations: 0 / 488.5 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.1321, allocations: 7.938 kB / 488.5 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.1321, allocations: 0 / 488.5 MB, free: 8.176 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.1322, allocations: 95.27 kB / 488.6 MB, free: 8.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1322, allocations: 0 / 488.6 MB, free: 8.082 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001124/0.1333, allocations: 315.9 kB / 488.9 MB, free: 7.773 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.001888/0.1352, allocations: 1.008 MB / 489.9 MB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.1356, allocations: 195.3 kB / 490.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1356, allocations: 4.094 kB / 490.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.1359, allocations: 151.3 kB / 490.2 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.1361, allocations: 11.94 kB / 490.2 MB, free: 6.352 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.1378, allocations: 0.8276 MB / 491.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1381, allocations: 0.7004 MB / 491.8 MB, free: 4.746 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.1382, allocations: 15.44 kB / 491.8 MB, free: 4.727 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1382, allocations: 0 / 491.8 MB, free: 4.727 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).