Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 92.06 kB / 16.65 MB, free: 6.59 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.001243/0.001243, allocations: 181.1 kB / 17.56 MB, free: 6.203 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.361/1.361, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.07 MB / 330.8 MB, free: 8.469 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003667, allocations: 12 kB / 400.7 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 59.16 MB / 459.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003105/0.1172, allocations: 1.811 MB / 461.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003531/0.1208, allocations: 2.129 MB / 463.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.257e-05/0.1209, allocations: 0 / 463.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.121, allocations: 11.92 kB / 463.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.378e-05/0.1211, allocations: 27.84 kB / 463.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.1229, allocations: 0.6866 MB / 464.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.1231, allocations: 127.5 kB / 464.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.1231, allocations: 8.172 kB / 464.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.925e-05/0.1232, allocations: 23.92 kB / 464.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.058e-05/0.1233, allocations: 59.75 kB / 464.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.1233, allocations: 0 / 464.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.125, allocations: 1.24 MB / 466 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.1251, allocations: 43.84 kB / 466 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.532e-05/0.1252, allocations: 85.19 kB / 466.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.1265, allocations: 1.325 MB / 467.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1265, allocations: 3.938 kB / 467.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1265, allocations: 0 / 467.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1265, allocations: 0 / 467.4 MB, free: 15.42 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006783/0.1272, allocations: 0.5863 MB / 468 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.1273, allocations: 12.03 kB / 468 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.1273, allocations: 20.66 kB / 468.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.1275, allocations: 215.5 kB / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.1276, allocations: 0 / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.1276, allocations: 0 / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.1278, allocations: 134.6 kB / 468.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1278, allocations: 0 / 468.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.1278, allocations: 7.984 kB / 468.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1278, allocations: 0 / 468.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.1279, allocations: 100.3 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000222/0.1282, allocations: 213.9 kB / 468.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.1283, allocations: 166.7 kB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1285, allocations: 145.2 kB / 469 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.1285, allocations: 0 / 469 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1285, allocations: 38.56 kB / 469.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.62e-07/0.1285, allocations: 0 / 469.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005958/0.1291, allocations: 490.9 kB / 469.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.1292, allocations: 117.1 kB / 469.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.1293, allocations: 170.4 kB / 469.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1294, allocations: 29.7 kB / 469.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.32e-05/0.1294, allocations: 104.8 kB / 470 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.1295, allocations: 130 kB / 470.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.1296, allocations: 29.7 kB / 470.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1297, allocations: 338.8 kB / 470.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.1298, allocations: 95.97 kB / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.28e-05/0.1299, allocations: 96.94 kB / 470.6 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.1302, allocations: 384.3 kB / 471 MB, free: 11.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1303, allocations: 0 / 471 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004388/0.1307, allocations: 342.9 kB / 471.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.078e-05/0.1308, allocations: 85.64 kB / 471.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1308, allocations: 3.984 kB / 471.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.1308, allocations: 0 / 471.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.1308, allocations: 0 / 471.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1308, allocations: 0 / 471.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.577e-05/0.1309, allocations: 15.84 kB / 471.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.1309, allocations: 8 kB / 471.4 MB, free: 11.14 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.000223/0.1312, allocations: 243.3 kB / 471.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1312, allocations: 23.72 kB / 471.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.1312, allocations: 18.66 kB / 471.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1312, allocations: 0 / 471.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1312, allocations: 0 / 471.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1312, allocations: 0 / 471.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1315, allocations: 241.2 kB / 472 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1315, allocations: 0 / 472 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.1315, allocations: 0 / 472 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1315, allocations: 7.984 kB / 472 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.1315, allocations: 15.94 kB / 472 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1315, allocations: 0 / 472 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1315, allocations: 0 / 472 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009199/0.1325, allocations: 0.9198 MB / 472.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.1325, allocations: 92.86 kB / 473 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.1325, allocations: 8 kB / 473 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.983e-05/0.1326, allocations: 4 kB / 473 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.1326, allocations: 19.95 kB / 473 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.1327, allocations: 8 kB / 473 MB, free: 9.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.138e-05/0.1328, allocations: 127.2 kB / 473.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1328, allocations: 0 / 473.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007635/0.1335, allocations: 351.9 kB / 473.5 MB, free: 8.977 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.0009526/0.1345, allocations: 384.4 kB / 473.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.136, allocations: 1.597 MB / 475.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.136, allocations: 0 / 475.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.1371, allocations: 1.366 MB / 476.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.1374, allocations: 19.98 kB / 476.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1385, allocations: 0.7582 MB / 477.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.139, allocations: 0.752 MB / 478.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.358e-05/0.139, allocations: 3.984 kB / 478.4 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.251e-05/0.139, allocations: 11.44 kB / 478.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.139, allocations: 0 / 478.4 MB, free: 4.012 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].