Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001137/0.001137, allocations: 92.05 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.001351/0.001351, allocations: 180.4 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.367/1.367, allocations: 223.3 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1812/0.1812, allocations: 38.08 MB / 330.8 MB, free: 8.555 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002933, allocations: 8 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.09973, allocations: 59.17 MB / 460 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002174/0.1019, allocations: 1.807 MB / 461.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00282/0.1048, allocations: 2.118 MB / 463.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.27e-05/0.1048, allocations: 0 / 463.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.105, allocations: 15.91 kB / 463.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.692e-05/0.1051, allocations: 35.83 kB / 464 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.1066, allocations: 0.6889 MB / 464.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.1067, allocations: 119.6 kB / 464.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.1068, allocations: 4.188 kB / 464.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.882e-05/0.1069, allocations: 39.84 kB / 464.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.789e-05/0.1069, allocations: 43.83 kB / 464.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.107, allocations: 0 / 464.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001503/0.1085, allocations: 1.232 MB / 466.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.1085, allocations: 15.91 kB / 466.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.133e-05/0.1086, allocations: 45.58 kB / 466.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.1098, allocations: 1.267 MB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1098, allocations: 4 kB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1098, allocations: 0 / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.1099, allocations: 0 / 467.4 MB, free: 15.5 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005462/0.1104, allocations: 0.4892 MB / 467.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1105, allocations: 8.031 kB / 467.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.1105, allocations: 38.69 kB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.1105, allocations: 8.844 kB / 468 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.1107, allocations: 187.4 kB / 468.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.1107, allocations: 0 / 468.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.1107, allocations: 4 kB / 468.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.1109, allocations: 61.67 kB / 468.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1109, allocations: 0 / 468.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1109, allocations: 3.938 kB / 468.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1109, allocations: 0 / 468.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.349e-05/0.111, allocations: 19.98 kB / 468.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.1111, allocations: 173.5 kB / 468.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.179e-05/0.1112, allocations: 42.59 kB / 468.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.637e-05/0.1113, allocations: 40.84 kB / 468.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.1113, allocations: 0 / 468.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.1113, allocations: 30.56 kB / 468.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.11e-07/0.1113, allocations: 0 / 468.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002585/0.1116, allocations: 159.2 kB / 468.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1116, allocations: 89.09 kB / 468.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.07e-05/0.1117, allocations: 117.8 kB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.1117, allocations: 25.7 kB / 468.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.1118, allocations: 96.16 kB / 469 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.283e-05/0.1118, allocations: 23.66 kB / 469 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.1119, allocations: 13.7 kB / 469 MB, free: 13.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.112, allocations: 322.8 kB / 469.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.821e-05/0.112, allocations: 23.98 kB / 469.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.91e-05/0.1121, allocations: 19.98 kB / 469.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.1122, allocations: 132.2 kB / 469.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1122, allocations: 0 / 469.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001456/0.1123, allocations: 127.4 kB / 469.6 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/0.1124, allocations: 49.75 kB / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1124, allocations: 0 / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.1124, allocations: 0 / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1124, allocations: 0 / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1124, allocations: 0 / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.07e-05/0.1125, allocations: 15.78 kB / 469.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.1125, allocations: 7.984 kB / 469.7 MB, free: 12.93 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.0001098/0.1126, allocations: 151.5 kB / 469.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.1127, allocations: 7.906 kB / 469.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.698e-05/0.1127, allocations: 20.36 kB / 469.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1127, allocations: 0 / 469.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1127, allocations: 0 / 469.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.1127, allocations: 0 / 469.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.1128, allocations: 169.6 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1128, allocations: 0 / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1128, allocations: 0 / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1128, allocations: 0 / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1129, allocations: 4 kB / 470 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1129, allocations: 12.23 kB / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1129, allocations: 0 / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.1131, allocations: 222.6 kB / 470.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.1132, allocations: 85.02 kB / 470.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.1132, allocations: 3.984 kB / 470.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.547e-05/0.1132, allocations: 11.94 kB / 470.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.649e-05/0.1132, allocations: 0 / 470.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.1132, allocations: 4 kB / 470.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.203e-05/0.1133, allocations: 98.27 kB / 470.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1133, allocations: 4.031 kB / 470.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006681/0.114, allocations: 327.8 kB / 470.8 MB, free: 11.72 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.001222/0.1152, allocations: 1.011 MB / 471.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002384/0.1155, allocations: 199.3 kB / 472 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1155, allocations: 0 / 472 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.1156, allocations: 151.4 kB / 472.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1158, allocations: 7.906 kB / 472.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.1174, allocations: 1.716 MB / 473.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.1176, allocations: 0.6926 MB / 474.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.732e-05/0.1177, allocations: 7.984 kB / 474.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.1177, allocations: 15.44 kB / 474.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1177, allocations: 0 / 474.6 MB, free: 7.758 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].