Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.00153/0.001533, allocations: 188.1 kB / 15.77 MB, free: 5.984 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.005/2.005, 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.001176/0.001176, allocations: 102.8 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.2735/0.2735, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000631/0.0006312, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1094, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002995/0.1124, allocations: 1.795 MB / 480.9 MB, free: 116 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004102/0.1166, allocations: 1.947 MB / 482.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.415e-05/0.1167, allocations: 0 / 482.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1169, allocations: 15.92 kB / 482.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.101e-05/0.117, allocations: 15.95 kB / 482.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002634/0.1196, allocations: 0.589 MB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.1198, allocations: 43.92 kB / 483.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.059e-05/0.1199, allocations: 4 kB / 483.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.12, allocations: 35.84 kB / 483.6 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.849e-05/0.1201, allocations: 31.91 kB / 483.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.1201, allocations: 4 kB / 483.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.1226, allocations: 0.9709 MB / 484.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.561e-05/0.1227, allocations: 27.92 kB / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.842e-05/0.1228, allocations: 33.64 kB / 484.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002146/0.1249, allocations: 0.9124 MB / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.125, allocations: 4 kB / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.125, allocations: 0 / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.125, allocations: 0 / 485.6 MB, free: 11.46 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009379/0.126, allocations: 0.5278 MB / 486.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.126, allocations: 12.03 kB / 486.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.1261, allocations: 66.19 kB / 486.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.1262, allocations: 15.81 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.1265, allocations: 202.8 kB / 486.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1265, allocations: 0 / 486.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.1266, allocations: 8 kB / 486.4 MB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.1269, allocations: 123.2 kB / 486.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1269, allocations: 3.938 kB / 486.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1269, allocations: 3.953 kB / 486.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.127, allocations: 11.98 kB / 486.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.1272, allocations: 72.17 kB / 486.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006368/0.1278, allocations: 360.9 kB / 486.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.128, allocations: 74.56 kB / 487 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.128, allocations: 0 / 487 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.1281, allocations: 30.56 kB / 487 MB, free: 9.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.1281, allocations: 7.875 kB / 487.1 MB, free: 9.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006096/0.1287, allocations: 308.4 kB / 487.4 MB, free: 9.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.1288, allocations: 89.09 kB / 487.4 MB, free: 9.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.129, allocations: 158 kB / 487.6 MB, free: 9.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.129, allocations: 25.7 kB / 487.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1291, allocations: 178.4 kB / 487.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.1292, allocations: 51.27 kB / 487.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-06/0.1292, allocations: 0 / 487.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1294, allocations: 314.8 kB / 488.2 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-05/0.1295, allocations: 47.91 kB / 488.2 MB, free: 8.559 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.687e-05/0.1296, allocations: 35.97 kB / 488.2 MB, free: 8.523 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.1298, allocations: 89.05 kB / 488.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1298, allocations: 0 / 488.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003371/0.1301, allocations: 163.3 kB / 488.5 MB, free: 8.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.817e-05/0.1302, allocations: 53.75 kB / 488.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1302, allocations: 0 / 488.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.1303, allocations: 0 / 488.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.1303, allocations: 0 / 488.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1303, allocations: 0 / 488.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1304, allocations: 11.84 kB / 488.5 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.1304, allocations: 7.984 kB / 488.6 MB, free: 8.184 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.0001916/0.1306, allocations: 179.5 kB / 488.7 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.1307, allocations: 11.91 kB / 488.7 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.806e-05/0.1307, allocations: 8.844 kB / 488.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1307, allocations: 4 kB / 488.8 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1308, allocations: 0 / 488.8 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1308, allocations: 0 / 488.8 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.1311, allocations: 213.5 kB / 489 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1311, allocations: 4 kB / 489 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.036e-06/0.1311, allocations: 3.984 kB / 489 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1311, allocations: 0 / 489 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.1311, allocations: 4 kB / 489 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1311, allocations: 0 / 489 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.738e-06/0.1312, allocations: 0 / 489 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006191/0.1318, allocations: 372.9 kB / 489.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.811e-05/0.1319, allocations: 96.84 kB / 489.4 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.1319, allocations: 0 / 489.4 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.132, allocations: 4 kB / 489.4 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.1321, allocations: 8 kB / 489.4 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.1321, allocations: 4 kB / 489.4 MB, free: 7.188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001166/0.1322, allocations: 111.2 kB / 489.6 MB, free: 7.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1322, allocations: 4.031 kB / 489.6 MB, free: 7.074 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001253/0.1335, allocations: 343.7 kB / 489.9 MB, free: 6.738 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.002654/0.1362, allocations: 1.268 MB / 491.2 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00062/0.1369, allocations: 327.3 kB / 491.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1369, allocations: 0 / 491.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.1372, allocations: 259.3 kB / 491.7 MB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.1376, allocations: 15.98 kB / 491.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.1404, allocations: 1.314 MB / 493.1 MB, free: 3.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1408, allocations: 0.7316 MB / 493.8 MB, free: 2.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.321e-05/0.1409, allocations: 39.42 kB / 493.8 MB, free: 2.66 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1409, allocations: 0 / 493.8 MB, free: 2.66 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).