Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001449/0.001449, allocations: 111.2 kB / 16.92 MB, free: 5.699 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.001352/0.001352, 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.32/1.32, 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-master/package.mo): time 0.1764/0.1764, allocations: 38.03 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.001341, allocations: 66.03 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.09463, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003378/0.09805, allocations: 2.093 MB / 459.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.1008, allocations: 2.039 MB / 461.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.192e-05/0.1009, allocations: 7.938 kB / 461.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.101, allocations: 7.922 kB / 461.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.445e-05/0.1011, allocations: 35.83 kB / 461.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1032, allocations: 0.8344 MB / 462 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.1033, allocations: 75.7 kB / 462.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.1034, allocations: 8.172 kB / 462.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.154e-05/0.1034, allocations: 23.86 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.1035, allocations: 43.83 kB / 462.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.1035, allocations: 4 kB / 462.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001779/0.1053, allocations: 1.259 MB / 463.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.1054, allocations: 15.92 kB / 463.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.436e-05/0.1054, allocations: 23.81 kB / 463.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001657/0.1071, allocations: 1.325 MB / 464.8 MB, free: 148 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1071, allocations: 4 kB / 464.8 MB, free: 144 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1071, allocations: 0 / 464.8 MB, free: 144 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1071, allocations: 0 / 464.8 MB, free: 144 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007308/0.1079, allocations: 0.5241 MB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1079, allocations: 15.89 kB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.531e-05/0.1079, allocations: 34.73 kB / 465.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.678e-05/0.108, allocations: 8.844 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.1082, allocations: 191.3 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.1082, allocations: 4 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-06/0.1082, allocations: 3.938 kB / 465.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.1083, allocations: 61.67 kB / 465.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.1083, allocations: 8 kB / 465.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.1084, allocations: 0 / 465.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.1084, allocations: 0 / 465.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.482e-05/0.1084, allocations: 35.97 kB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001625/0.1086, allocations: 169.6 kB / 465.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.852e-05/0.1087, allocations: 62.61 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.948e-05/0.1087, allocations: 48.81 kB / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.488e-06/0.1088, allocations: 0 / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.1088, allocations: 34.56 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.1088, allocations: 0 / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000291/0.1091, allocations: 195.2 kB / 466.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.1091, allocations: 85.11 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.963e-05/0.1093, allocations: 128.3 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1093, allocations: 29.7 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.1093, allocations: 92.12 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.1094, allocations: 43.36 kB / 466.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.1094, allocations: 25.75 kB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1095, allocations: 322.8 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.618e-05/0.1096, allocations: 39.86 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.164e-05/0.1096, allocations: 31.98 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.1098, allocations: 160.2 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1098, allocations: 4 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001819/0.11, allocations: 155.7 kB / 467.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.11, allocations: 45.67 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.11, allocations: 64 / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1101, allocations: 8 kB / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1101, allocations: 0 / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1101, allocations: 0 / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.339e-05/0.1101, allocations: 3.938 kB / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.1102, allocations: 7.938 kB / 467.3 MB, free: 13.33 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.0001198/0.1103, allocations: 175.4 kB / 467.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.853e-05/0.1103, allocations: 7.906 kB / 467.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.67e-05/0.1103, allocations: 16.7 kB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1103, allocations: 0 / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1103, allocations: 4 kB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.1103, allocations: 0 / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.1105, allocations: 181.5 kB / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1105, allocations: 0 / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-06/0.1105, allocations: 7.938 kB / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1105, allocations: 3.984 kB / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.1105, allocations: 0 / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1105, allocations: 4 kB / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1105, allocations: 0 / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.1108, allocations: 290.5 kB / 468 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.1109, allocations: 88.95 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.1109, allocations: 4 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.825e-05/0.1109, allocations: 0 / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.909e-05/0.111, allocations: 4 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.111, allocations: 7.938 kB / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.885e-05/0.111, allocations: 107.2 kB / 468.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1111, allocations: 0 / 468.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.1118, allocations: 316 kB / 468.5 MB, free: 12.02 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.00143/0.1133, allocations: 1.078 MB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.1136, allocations: 303.3 kB / 469.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1136, allocations: 3.938 kB / 469.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.1138, allocations: 227.3 kB / 470.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.114, allocations: 14.92 kB / 470.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.1159, allocations: 1.926 MB / 472 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1162, allocations: 0.7117 MB / 472.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.032e-05/0.1162, allocations: 0 / 472.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.1163, allocations: 23.42 kB / 472.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1163, allocations: 4 kB / 472.8 MB, free: 7.578 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].