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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 109.3 kB / 16.92 MB, free: 5.758 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.00164/0.00164, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.491/1.491, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1865/0.1865, allocations: 38.02 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 60.19 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.115, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003831/0.1188, allocations: 2.093 MB / 459.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003268/0.1221, allocations: 2.043 MB / 461.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.54e-05/0.1222, allocations: 0 / 461.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1224, allocations: 11.92 kB / 461.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.1225, allocations: 35.83 kB / 461.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002524/0.1251, allocations: 0.8383 MB / 462 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1252, allocations: 79.69 kB / 462.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.243e-05/0.1253, allocations: 4.188 kB / 462.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.668e-05/0.1254, allocations: 35.78 kB / 462.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.1255, allocations: 51.81 kB / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.1256, allocations: 0 / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.1277, allocations: 1.255 MB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.646e-05/0.1277, allocations: 51.81 kB / 463.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.1278, allocations: 55.5 kB / 463.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.1299, allocations: 1.376 MB / 464.9 MB, free: 20 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1299, allocations: 0 / 464.9 MB, free: 20 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.13, allocations: 0 / 464.9 MB, free: 20 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.13, allocations: 3.938 kB / 464.9 MB, free: 16 kB / 334.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.0009072/0.1309, allocations: 0.598 MB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1309, allocations: 11.89 kB / 465.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.105e-05/0.131, allocations: 50.73 kB / 465.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.131, allocations: 16.66 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.1313, allocations: 215.8 kB / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.1314, allocations: 4 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.1314, allocations: 7.938 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.1317, allocations: 150.5 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.1317, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1317, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1318, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.1319, allocations: 92.3 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000267/0.1322, allocations: 221.6 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.1324, allocations: 154.5 kB / 466.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.1326, allocations: 148.8 kB / 466.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-06/0.1326, allocations: 0 / 466.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.1326, allocations: 34.5 kB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.182e-06/0.1327, allocations: 0 / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007695/0.1334, allocations: 499.6 kB / 467.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.1335, allocations: 105.1 kB / 467.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.1337, allocations: 166.4 kB / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.1337, allocations: 29.69 kB / 467.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.172e-05/0.1338, allocations: 104.8 kB / 467.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1339, allocations: 126.1 kB / 467.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/0.134, allocations: 37.69 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1342, allocations: 334.8 kB / 467.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1343, allocations: 104 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.1344, allocations: 104.9 kB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.1348, allocations: 376.3 kB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.1348, allocations: 0 / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000405/0.1352, allocations: 342.9 kB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-05/0.1353, allocations: 79.98 kB / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1353, allocations: 7.922 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1354, allocations: 0 / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.1354, allocations: 4 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1354, allocations: 0 / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.503e-05/0.1355, allocations: 27.75 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.1355, allocations: 12 kB / 469 MB, free: 11.65 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.0002228/0.1358, allocations: 239.3 kB / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.1358, allocations: 19.81 kB / 469.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.929e-05/0.1358, allocations: 10.66 kB / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1358, allocations: 0 / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1358, allocations: 7.875 kB / 469.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.1359, allocations: 0 / 469.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.1361, allocations: 245.2 kB / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1361, allocations: 4 kB / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.1361, allocations: 0 / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1361, allocations: 0 / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.1361, allocations: 11.98 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1361, allocations: 0 / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1361, allocations: 0 / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009932/0.1371, allocations: 0.912 MB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.009e-05/0.1372, allocations: 104.7 kB / 470.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.1373, allocations: 12.03 kB / 470.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.504e-05/0.1373, allocations: 8 kB / 470.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.1374, allocations: 7.984 kB / 470.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.1374, allocations: 8 kB / 470.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.546e-05/0.1375, allocations: 132.2 kB / 470.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1375, allocations: 0 / 470.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001027/0.1385, allocations: 351.9 kB / 471 MB, free: 9.492 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.002559/0.1411, allocations: 1.73 MB / 472.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.1425, allocations: 1.6 MB / 474.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1425, allocations: 0 / 474.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.1436, allocations: 1.366 MB / 475.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.1438, allocations: 34.92 kB / 475.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.148, allocations: 3.63 MB / 479.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1483, allocations: 0.7633 MB / 480.1 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.296e-05/0.1484, allocations: 3.938 kB / 480.2 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.1484, allocations: 43.42 kB / 480.2 MB, free: 156 kB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1484, allocations: 0 / 480.2 MB, free: 156 kB / 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].