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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001555, allocations: 191.3 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.041/2.041, 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.001108/0.001108, allocations: 94.8 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.2649/0.2649, allocations: 38.06 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006167/0.0006167, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1123, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.00305/0.1154, allocations: 1.803 MB / 480.8 MB, free: 224 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.1197, allocations: 1.94 MB / 482.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.711e-05/0.1198, allocations: 0 / 482.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.12, allocations: 15.92 kB / 482.8 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.67e-05/0.12, allocations: 19.95 kB / 482.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002581/0.1226, allocations: 0.5774 MB / 483.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.1228, allocations: 51.86 kB / 483.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.026e-05/0.1229, allocations: 4 kB / 483.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.123, allocations: 35.84 kB / 483.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.219e-05/0.1231, allocations: 35.84 kB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.1231, allocations: 4 kB / 483.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002296/0.1254, allocations: 0.9709 MB / 484.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.804e-05/0.1255, allocations: 23.92 kB / 484.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.859e-05/0.1256, allocations: 37.64 kB / 484.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.1274, allocations: 0.9202 MB / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1274, allocations: 0 / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1274, allocations: 0 / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1274, allocations: 0 / 485.5 MB, free: 11.56 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.0008842/0.1283, allocations: 0.5277 MB / 486 MB, free: 10.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1284, allocations: 8.031 kB / 486 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.1284, allocations: 11.89 kB / 486 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1287, allocations: 194.8 kB / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.1287, allocations: 0 / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.1287, allocations: 0 / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.1289, allocations: 77.66 kB / 486.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.129, allocations: 0 / 486.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.129, allocations: 0 / 486.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.129, allocations: 3.953 kB / 486.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.1291, allocations: 43.97 kB / 486.3 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002087/0.1293, allocations: 177.5 kB / 486.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.1295, allocations: 78.48 kB / 486.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.719e-06/0.1295, allocations: 0 / 486.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.1296, allocations: 34.56 kB / 486.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.1296, allocations: 0 / 486.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005691/0.1302, allocations: 304.6 kB / 486.9 MB, free: 9.922 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.1302, allocations: 89.09 kB / 487 MB, free: 9.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.1304, allocations: 157.9 kB / 487.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.1305, allocations: 29.7 kB / 487.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.443e-05/0.1306, allocations: 162.8 kB / 487.3 MB, free: 9.457 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.1307, allocations: 47.3 kB / 487.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/0.1307, allocations: 3.938 kB / 487.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1308, allocations: 318.8 kB / 487.7 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-05/0.1309, allocations: 35.97 kB / 487.7 MB, free: 9.051 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.952e-05/0.131, allocations: 47.41 kB / 487.8 MB, free: 9.008 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.1312, allocations: 81.67 kB / 487.9 MB, free: 8.922 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1312, allocations: 0 / 487.9 MB, free: 8.922 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003389/0.1316, allocations: 167.3 kB / 488 MB, free: 8.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.34e-05/0.1317, allocations: 45.69 kB / 488.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1317, allocations: 4 kB / 488.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1317, allocations: 4.062 kB / 488.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.1317, allocations: 0 / 488.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.1317, allocations: 3.938 kB / 488.1 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.429e-05/0.1318, allocations: 19.78 kB / 488.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.1319, allocations: 4 kB / 488.1 MB, free: 8.66 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.0001773/0.132, allocations: 163.5 kB / 488.3 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.1321, allocations: 11.91 kB / 488.3 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.1321, allocations: 16.83 kB / 488.3 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1321, allocations: 3.938 kB / 488.3 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1322, allocations: 4 kB / 488.3 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1322, allocations: 0 / 488.3 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.1324, allocations: 193.5 kB / 488.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1324, allocations: 0 / 488.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.1324, allocations: 0 / 488.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1324, allocations: 0 / 488.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.1324, allocations: 4 kB / 488.5 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1324, allocations: 0 / 488.5 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1324, allocations: 0 / 488.5 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.133, allocations: 306.5 kB / 488.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.1331, allocations: 92.86 kB / 488.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.1331, allocations: 0 / 488.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.471e-05/0.1332, allocations: 4 kB / 488.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.1332, allocations: 4 kB / 488.9 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.1333, allocations: 7.984 kB / 488.9 MB, free: 7.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.1334, allocations: 111.2 kB / 489 MB, free: 7.652 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1334, allocations: 0 / 489 MB, free: 7.652 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001163/0.1346, allocations: 316 kB / 489.3 MB, free: 7.344 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.001312/0.1359, allocations: 374.4 kB / 489.7 MB, free: 6.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000625/0.1365, allocations: 335.2 kB / 490 MB, free: 6.629 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1366, allocations: 0 / 490 MB, free: 6.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.1369, allocations: 255.3 kB / 490.3 MB, free: 6.367 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.1372, allocations: 24.06 kB / 490.3 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007827/0.138, allocations: 422.5 kB / 490.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.1384, allocations: 0.716 MB / 491.4 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.18e-05/0.1384, allocations: 11.44 kB / 491.4 MB, free: 5.148 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1384, allocations: 0 / 491.4 MB, free: 5.148 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).