Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 111 kB / 16.63 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 185.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.174/0.174, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 73.23 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1168, allocations: 58.06 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004589/0.1214, allocations: 2.182 MB / 458.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004324/0.1258, allocations: 2.066 MB / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.1259, allocations: 4 kB / 460.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.1261, allocations: 7.922 kB / 460.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.1263, allocations: 39.81 kB / 460.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.1292, allocations: 0.7391 MB / 461.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.1294, allocations: 103.6 kB / 461.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.909e-05/0.1295, allocations: 4 kB / 461.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.1296, allocations: 43.78 kB / 461.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.1298, allocations: 63.75 kB / 461.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.1298, allocations: 0 / 461.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002664/0.1325, allocations: 1.248 MB / 462.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.572e-05/0.1326, allocations: 27.91 kB / 462.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.024e-05/0.1327, allocations: 39.73 kB / 462.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.1351, allocations: 1.243 MB / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1352, allocations: 0 / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1352, allocations: 0 / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.1352, allocations: 0 / 464.1 MB, free: 0.5938 MB / 334.1 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.001162/0.1364, allocations: 0.5436 MB / 464.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.1364, allocations: 19.83 kB / 464.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.225e-05/0.1365, allocations: 12.75 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.1368, allocations: 188.2 kB / 464.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1369, allocations: 4.125 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.1369, allocations: 0 / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.1371, allocations: 77.66 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1371, allocations: 0 / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.1371, allocations: 3.938 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1371, allocations: 0 / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.1373, allocations: 43.91 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002121/0.1375, allocations: 177.6 kB / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.1376, allocations: 78.48 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1378, allocations: 60.86 kB / 465.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-06/0.1378, allocations: 0 / 465.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.1378, allocations: 34.56 kB / 465.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.1378, allocations: 0 / 465.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004883/0.1383, allocations: 230.6 kB / 465.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.1384, allocations: 89.11 kB / 465.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.1386, allocations: 156.9 kB / 465.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.1386, allocations: 25.7 kB / 465.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.1387, allocations: 100.4 kB / 466 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.1388, allocations: 47.3 kB / 466 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.1388, allocations: 25.7 kB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.139, allocations: 322.8 kB / 466.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.1391, allocations: 40.02 kB / 466.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.595e-05/0.1392, allocations: 39.97 kB / 466.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.1394, allocations: 176.4 kB / 466.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.1395, allocations: 3.938 kB / 466.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002858/0.1398, allocations: 183 kB / 466.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.477e-05/0.1398, allocations: 45.69 kB / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1398, allocations: 0 / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1399, allocations: 0 / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.1399, allocations: 0 / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1399, allocations: 0 / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.12e-05/0.14, allocations: 11.97 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.14, allocations: 7.984 kB / 466.8 MB, free: 13.63 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001744/0.1402, allocations: 171.5 kB / 467 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.1402, allocations: 7.906 kB / 467 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.1403, allocations: 16.83 kB / 467 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1403, allocations: 0 / 467 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.1403, allocations: 4 kB / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1403, allocations: 3.984 kB / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.1405, allocations: 193.4 kB / 467.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1405, allocations: 4 kB / 467.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1405, allocations: 0 / 467.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1405, allocations: 0 / 467.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.1406, allocations: 8 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1406, allocations: 0 / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1406, allocations: 0 / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.1411, allocations: 309.5 kB / 467.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.1412, allocations: 88.92 kB / 467.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.1412, allocations: 4 kB / 467.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.301e-05/0.1413, allocations: 8.031 kB / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-05/0.1413, allocations: 0 / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.1413, allocations: 4 kB / 467.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.1414, allocations: 121.7 kB / 467.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1414, allocations: 0 / 467.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001353/0.1428, allocations: 323.9 kB / 468.1 MB, free: 12.28 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.1444, allocations: 366.9 kB / 468.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005372/0.145, allocations: 343.2 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.145, allocations: 0 / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.1453, allocations: 255.3 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.1457, allocations: 23.58 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006289/0.1463, allocations: 381 kB / 469.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.1466, allocations: 0.7158 MB / 470.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.095e-05/0.1467, allocations: 4 kB / 470.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.407e-05/0.1467, allocations: 7.438 kB / 470.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1467, allocations: 0 / 470.1 MB, free: 10.14 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].