Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_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.001164/0.001164, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001048/0.001048, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.303/1.303, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1781/0.1781, allocations: 38.04 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 61.59 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 58.07 MB / 457 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003756/0.1125, allocations: 2.083 MB / 459.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.1156, allocations: 2.05 MB / 461.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.278e-05/0.1157, allocations: 0 / 461.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.1159, allocations: 15.86 kB / 461.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.1161, allocations: 35.83 kB / 461.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.1186, allocations: 0.8345 MB / 462 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001476/0.1187, allocations: 79.64 kB / 462.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.642e-05/0.1188, allocations: 4.188 kB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.626e-05/0.1189, allocations: 31.89 kB / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.539e-05/0.119, allocations: 39.78 kB / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.119, allocations: 4 kB / 462.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.1207, allocations: 1.259 MB / 463.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.791e-05/0.1207, allocations: 15.92 kB / 463.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.731e-05/0.1208, allocations: 19.88 kB / 463.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.1221, allocations: 1.314 MB / 464.8 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1221, allocations: 0 / 464.8 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1221, allocations: 3.938 kB / 464.8 MB, free: 104 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1221, allocations: 0 / 464.8 MB, free: 104 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005855/0.1227, allocations: 0.497 MB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.1227, allocations: 11.89 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.927e-05/0.1228, allocations: 38.73 kB / 465.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.1228, allocations: 8.844 kB / 465.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.123, allocations: 187.3 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.123, allocations: 4 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-06/0.123, allocations: 0 / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.1232, allocations: 49.69 kB / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1232, allocations: 0 / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1232, allocations: 7.984 kB / 465.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1232, allocations: 3.938 kB / 465.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.421e-05/0.1233, allocations: 23.94 kB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.1234, allocations: 177.5 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.072e-05/0.1235, allocations: 42.56 kB / 465.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.511e-05/0.1236, allocations: 36.88 kB / 465.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-06/0.1236, allocations: 0 / 465.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.1236, allocations: 34.56 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.505e-06/0.1236, allocations: 3.984 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002622/0.1239, allocations: 147.3 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.124, allocations: 89.09 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.909e-05/0.124, allocations: 121 kB / 466.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.1241, allocations: 25.7 kB / 466.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.765e-05/0.1241, allocations: 96.12 kB / 466.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.1242, allocations: 23.56 kB / 466.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.1242, allocations: 25.73 kB / 466.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1243, allocations: 322.8 kB / 466.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.863e-05/0.1244, allocations: 19.98 kB / 466.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.538e-05/0.1244, allocations: 23.98 kB / 466.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.1245, allocations: 124.2 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1245, allocations: 0 / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001529/0.1247, allocations: 131.4 kB / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.1248, allocations: 41.69 kB / 467 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1248, allocations: 0 / 467 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1248, allocations: 8.062 kB / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1248, allocations: 0 / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1248, allocations: 0 / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.508e-05/0.1248, allocations: 0 / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.1249, allocations: 7.984 kB / 467 MB, free: 13.53 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.0001079/0.125, allocations: 163.4 kB / 467.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.125, allocations: 7.906 kB / 467.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.284e-05/0.125, allocations: 4.375 kB / 467.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.125, allocations: 11.98 kB / 467.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.125, allocations: 4 kB / 467.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.125, allocations: 0 / 467.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.1252, allocations: 173.5 kB / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1252, allocations: 0 / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1252, allocations: 0 / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1252, allocations: 0 / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.1252, allocations: 4 kB / 467.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1252, allocations: 0 / 467.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1252, allocations: 0 / 467.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/0.1254, allocations: 230.8 kB / 467.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.318e-05/0.1255, allocations: 88.95 kB / 467.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.1255, allocations: 4 kB / 467.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.342e-05/0.1255, allocations: 0 / 467.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.1256, allocations: 7.984 kB / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.1256, allocations: 4 kB / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.489e-05/0.1256, allocations: 95.27 kB / 467.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1257, allocations: 0 / 467.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006267/0.1263, allocations: 319.8 kB / 468.1 MB, free: 12.32 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.001231/0.1275, allocations: 1.014 MB / 469.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002346/0.1278, allocations: 195.3 kB / 469.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1278, allocations: 4.094 kB / 469.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.1279, allocations: 147.4 kB / 469.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.1281, allocations: 11.98 kB / 469.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.1298, allocations: 1.683 MB / 471.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.1301, allocations: 0.7002 MB / 471.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.262e-05/0.1301, allocations: 0 / 471.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.1302, allocations: 15.44 kB / 471.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1302, allocations: 0 / 471.9 MB, free: 8.395 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].