Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001159/0.001159, allocations: 105.8 kB / 16.62 MB, free: 6.812 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.00123/0.00123, allocations: 189.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.296/1.296, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1736/0.1736, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.38 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09444, allocations: 58.06 MB / 456.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003431/0.0979, allocations: 2.142 MB / 458.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003011/0.1009, allocations: 2.059 MB / 460.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.367e-05/0.101, allocations: 0 / 460.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.1012, allocations: 7.922 kB / 460.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.266e-05/0.1013, allocations: 23.91 kB / 460.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002234/0.1035, allocations: 0.7548 MB / 461.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.1037, allocations: 79.69 kB / 461.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.521e-05/0.1037, allocations: 8.188 kB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.464e-05/0.1038, allocations: 35.84 kB / 461.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.106e-05/0.1039, allocations: 55.75 kB / 461.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.1039, allocations: 0 / 461.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.1058, allocations: 1.263 MB / 462.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.1059, allocations: 31.91 kB / 462.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.1059, allocations: 39.61 kB / 462.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.1077, allocations: 1.267 MB / 464.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1077, allocations: 3.938 kB / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1077, allocations: 0 / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1077, allocations: 0 / 464.2 MB, free: 0.5117 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009657/0.1087, allocations: 0.5591 MB / 464.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1088, allocations: 11.89 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.208e-05/0.1088, allocations: 42.73 kB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.1089, allocations: 20.73 kB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.109, allocations: 206.2 kB / 465 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.1091, allocations: 0 / 465 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.1091, allocations: 4 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.1092, allocations: 93.66 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1093, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.1093, allocations: 4 kB / 465.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.1093, allocations: 4 kB / 465.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.815e-05/0.1094, allocations: 63.83 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.1095, allocations: 189.5 kB / 465.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.1097, allocations: 106.5 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.792e-05/0.1098, allocations: 84.86 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.1098, allocations: 0 / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1098, allocations: 38.56 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.223e-06/0.1098, allocations: 0 / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004909/0.1103, allocations: 319.5 kB / 465.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.1104, allocations: 97.09 kB / 466 MB, free: 14.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1105, allocations: 152.5 kB / 466.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.1105, allocations: 25.7 kB / 466.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.1106, allocations: 104.6 kB / 466.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.1106, allocations: 82.73 kB / 466.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.1107, allocations: 25.7 kB / 466.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1108, allocations: 338.8 kB / 466.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.143e-05/0.1109, allocations: 59.97 kB / 466.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.309e-05/0.111, allocations: 59.97 kB / 466.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.1112, allocations: 250.6 kB / 467.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1112, allocations: 0 / 467.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002709/0.1115, allocations: 246.4 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.566e-05/0.1116, allocations: 64.02 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1116, allocations: 0 / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1116, allocations: 3.938 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.194e-06/0.1116, allocations: 8.047 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1116, allocations: 4 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.438e-05/0.1117, allocations: 11.84 kB / 467.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.1117, allocations: 4 kB / 467.4 MB, free: 13.02 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.0001481/0.1119, allocations: 195.4 kB / 467.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.1119, allocations: 15.81 kB / 467.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.722e-05/0.1119, allocations: 21.11 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1119, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1119, allocations: 4 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1119, allocations: 4 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.1121, allocations: 205.4 kB / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1121, allocations: 0 / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-07/0.1121, allocations: 0 / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1121, allocations: 0 / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1121, allocations: 8 kB / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1121, allocations: 0 / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1121, allocations: 0 / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/0.1127, allocations: 0.5217 MB / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.1128, allocations: 92.86 kB / 468.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.1129, allocations: 11.98 kB / 468.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.955e-05/0.1129, allocations: 4 kB / 468.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/0.1129, allocations: 4 kB / 468.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.1129, allocations: 8 kB / 468.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.745e-05/0.113, allocations: 114.7 kB / 468.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.113, allocations: 0 / 468.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009051/0.1139, allocations: 332 kB / 469 MB, free: 11.39 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.001822/0.1158, allocations: 1.324 MB / 470.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007021/0.1165, allocations: 0.7177 MB / 471 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1165, allocations: 4.094 kB / 471 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.117, allocations: 0.5657 MB / 471.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.1172, allocations: 18.25 kB / 471.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.1199, allocations: 2.697 MB / 474.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1203, allocations: 0.7278 MB / 475 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.301e-05/0.1203, allocations: 0 / 475 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/0.1203, allocations: 35.42 kB / 475 MB, free: 5.145 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1203, allocations: 0 / 475 MB, free: 5.145 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].