Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.001144/0.001144, allocations: 103.7 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.001256/0.001256, allocations: 193.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.268/1.268, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1627/0.1627, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 66.23 kB / 398.4 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09685/0.09827, allocations: 58.07 MB / 456.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003488/0.1018, allocations: 2.193 MB / 458.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.1033, allocations: 1.06 MB / 459.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.983e-05/0.1034, allocations: 0 / 459.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.1036, allocations: 19.91 kB / 459.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.1037, allocations: 51.8 kB / 459.8 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008598/0.1046, allocations: 255.5 kB / 460 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.1048, allocations: 131.5 kB / 460.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.862e-05/0.1048, allocations: 0 / 460.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.1049, allocations: 51.81 kB / 460.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.1051, allocations: 79.72 kB / 460.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.1051, allocations: 4 kB / 460.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005688/0.1057, allocations: 407.2 kB / 460.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.1057, allocations: 35.88 kB / 460.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1058, allocations: 43.69 kB / 460.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.1064, allocations: 0.5068 MB / 461.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1064, allocations: 4 kB / 461.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1064, allocations: 0 / 461.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1064, allocations: 0 / 461.3 MB, free: 3.5 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005472/0.107, allocations: 460.8 kB / 461.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.107, allocations: 15.89 kB / 461.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.758e-05/0.1072, allocations: 66.39 kB / 461.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.76e-05/0.1072, allocations: 8.844 kB / 461.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.1074, allocations: 208 kB / 462 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.1074, allocations: 4.375 kB / 462 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.1075, allocations: 15.94 kB / 462 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.1077, allocations: 129.6 kB / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1077, allocations: 3.938 kB / 462.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.1077, allocations: 4 kB / 462.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1077, allocations: 0 / 462.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1079, allocations: 87.94 kB / 462.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004014/0.1083, allocations: 356.4 kB / 462.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.1084, allocations: 126.5 kB / 462.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1085, allocations: 120.9 kB / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.1085, allocations: 0 / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.1086, allocations: 34.5 kB / 462.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 8.92e-07/0.1086, allocations: 0 / 462.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004525/0.109, allocations: 307.2 kB / 463.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.1091, allocations: 89.09 kB / 463.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1092, allocations: 136.2 kB / 463.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.1093, allocations: 29.7 kB / 463.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.1093, allocations: 100.5 kB / 463.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.1094, allocations: 62.95 kB / 463.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.1094, allocations: 29.7 kB / 463.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1096, allocations: 330.8 kB / 463.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.919e-05/0.1096, allocations: 60 kB / 464 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.1098, allocations: 51.97 kB / 464.1 MB, free: 492 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.1101, allocations: 230.9 kB / 464.3 MB, free: 248 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1101, allocations: 0 / 464.3 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002421/0.1103, allocations: 231 kB / 464.5 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/0.1104, allocations: 53.67 kB / 464.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1104, allocations: 0 / 464.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1104, allocations: 3.984 kB / 464.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1104, allocations: 0 / 464.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1104, allocations: 4 kB / 464.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.401e-05/0.1105, allocations: 8.062 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.1105, allocations: 4 kB / 464.6 MB, free: 15.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.0002411/0.1108, allocations: 191.4 kB / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.1108, allocations: 19.75 kB / 464.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.748e-05/0.1109, allocations: 13.17 kB / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1109, allocations: 0 / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1109, allocations: 0 / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1109, allocations: 0 / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.1111, allocations: 217.4 kB / 465 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1111, allocations: 4 kB / 465 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.1111, allocations: 3.938 kB / 465 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1111, allocations: 0 / 465 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.1111, allocations: 7.984 kB / 465 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1112, allocations: 7.938 kB / 465 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1112, allocations: 0 / 465 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004459/0.1116, allocations: 447.9 kB / 465.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.1117, allocations: 100.8 kB / 465.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.1117, allocations: 4.031 kB / 465.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.955e-05/0.1118, allocations: 8 kB / 465.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.1118, allocations: 3.984 kB / 465.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.1118, allocations: 8 kB / 465.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.442e-05/0.1119, allocations: 103.3 kB / 465.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1119, allocations: 0 / 465.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.1124, allocations: 139.9 kB / 465.8 MB, free: 14.57 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.001399/0.1138, allocations: 1.231 MB / 467.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005663/0.1144, allocations: 0.5656 MB / 467.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1144, allocations: 112 / 467.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004722/0.1149, allocations: 471.2 kB / 468.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1152, allocations: 16.75 kB / 468.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.1181, allocations: 2.479 MB / 470.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.1185, allocations: 0.7391 MB / 471.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.992e-05/0.1185, allocations: 0 / 471.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.1185, allocations: 31.42 kB / 471.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1185, allocations: 4 kB / 471.4 MB, free: 8.879 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].