Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.000968/0.000968, allocations: 89.67 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.001326/0.001326, allocations: 182.5 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.251/1.251, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1638/0.1638, allocations: 38.08 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003072, allocations: 8 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09296, allocations: 59.17 MB / 460 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002054/0.09505, allocations: 1.849 MB / 461.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.09767, allocations: 2.127 MB / 464 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.144e-05/0.09771, allocations: 0 / 464 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.09783, allocations: 15.92 kB / 464 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.797e-05/0.09792, allocations: 35.81 kB / 464 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.09934, allocations: 0.6826 MB / 464.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.09951, allocations: 179.5 kB / 464.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.09956, allocations: 4 kB / 464.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.535e-05/0.09964, allocations: 43.78 kB / 464.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.738e-05/0.09974, allocations: 63.75 kB / 465 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.09976, allocations: 0 / 465 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.1012, allocations: 1.216 MB / 466.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.211e-05/0.1012, allocations: 27.91 kB / 466.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.948e-05/0.1013, allocations: 65.44 kB / 466.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.1025, allocations: 1.271 MB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1025, allocations: 4 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1025, allocations: 0 / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1025, allocations: 0 / 467.6 MB, free: 15.33 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000536/0.1031, allocations: 0.5358 MB / 468.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.1031, allocations: 8.031 kB / 468.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.377e-05/0.1032, allocations: 62.39 kB / 468.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.1032, allocations: 16.75 kB / 468.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1034, allocations: 204 kB / 468.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.1034, allocations: 7.938 kB / 468.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.1034, allocations: 12 kB / 468.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.1036, allocations: 127.8 kB / 468.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1036, allocations: 0 / 468.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.1037, allocations: 7.984 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1037, allocations: 0 / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.1038, allocations: 76.19 kB / 468.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.1041, allocations: 368.8 kB / 469 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.066e-05/0.1042, allocations: 78.48 kB / 469 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.295e-05/0.1043, allocations: 56.86 kB / 469.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.1043, allocations: 0 / 469.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.1044, allocations: 38.5 kB / 469.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 8.12e-07/0.1044, allocations: 0 / 469.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000315/0.1047, allocations: 226.4 kB / 469.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.1047, allocations: 85.11 kB / 469.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.1049, allocations: 154.1 kB / 469.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.1049, allocations: 29.7 kB / 469.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.1049, allocations: 115.9 kB / 469.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.812e-05/0.105, allocations: 43.36 kB / 469.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.105, allocations: 13.72 kB / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.1051, allocations: 322.8 kB / 470.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.572e-05/0.1052, allocations: 52 kB / 470.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.824e-05/0.1052, allocations: 39.92 kB / 470.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.1054, allocations: 172.2 kB / 470.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1054, allocations: 3.938 kB / 470.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001916/0.1056, allocations: 179.2 kB / 470.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.1057, allocations: 45.69 kB / 470.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.996e-06/0.1057, allocations: 3.984 kB / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.549e-05/0.1058, allocations: 15.91 kB / 470.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.1058, allocations: 4 kB / 470.6 MB, free: 12 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.0001202/0.1059, allocations: 175.4 kB / 470.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.1059, allocations: 11.91 kB / 470.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.66e-05/0.106, allocations: 12.84 kB / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.106, allocations: 0 / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.106, allocations: 3.938 kB / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.106, allocations: 0 / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.1062, allocations: 217.4 kB / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1062, allocations: 4 kB / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.1062, allocations: 0 / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1062, allocations: 0 / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.1062, allocations: 4 kB / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1062, allocations: 0 / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1062, allocations: 4 kB / 471 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.1066, allocations: 370.3 kB / 471.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.1066, allocations: 88.86 kB / 471.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.1067, allocations: 8.031 kB / 471.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.86e-05/0.1067, allocations: 7.938 kB / 471.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.035e-05/0.1068, allocations: 4 kB / 471.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.1068, allocations: 8 kB / 471.5 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.56e-05/0.1068, allocations: 113.3 kB / 471.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1068, allocations: 0 / 471.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007008/0.1076, allocations: 335.8 kB / 471.9 MB, free: 10.56 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.001402/0.109, allocations: 1.284 MB / 473.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.1093, allocations: 331.3 kB / 473.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1093, allocations: 0 / 473.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.1095, allocations: 255.4 kB / 473.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.1098, allocations: 24 kB / 473.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.1121, allocations: 2.361 MB / 476.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1123, allocations: 0.7355 MB / 476.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.307e-05/0.1124, allocations: 0 / 476.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/0.1124, allocations: 39.42 kB / 477 MB, free: 5.383 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1124, allocations: 0 / 477 MB, free: 5.383 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].