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.001608/0.001609, allocations: 104.6 kB / 16.62 MB, free: 6.809 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.001359/0.001359, 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.291/1.291, allocations: 222.9 MB / 241.2 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1699/0.1699, allocations: 38.03 MB / 329.4 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001897, allocations: 60.95 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09908, allocations: 58.07 MB / 456.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004062/0.1032, allocations: 2.197 MB / 458.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.1066, allocations: 2.054 MB / 460.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.176e-05/0.1067, allocations: 4 kB / 460.7 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.1069, allocations: 7.922 kB / 460.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.107, allocations: 35.83 kB / 460.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.1094, allocations: 0.7559 MB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.1096, allocations: 95.62 kB / 461.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.1096, allocations: 4 kB / 461.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.098e-05/0.1097, allocations: 51.77 kB / 461.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.132e-05/0.1098, allocations: 55.75 kB / 461.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.1098, allocations: 4 kB / 461.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.1117, allocations: 1.24 MB / 463 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.901e-05/0.1118, allocations: 31.91 kB / 463 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.1118, allocations: 35.73 kB / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00182/0.1136, allocations: 1.255 MB / 464.3 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1137, allocations: 4 kB / 464.3 MB, free: 444 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1137, allocations: 0 / 464.3 MB, free: 444 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1137, allocations: 0 / 464.3 MB, free: 444 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009464/0.1146, allocations: 0.5357 MB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1147, allocations: 11.89 kB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.859e-05/0.1148, allocations: 58.45 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.1149, allocations: 20.75 kB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.1151, allocations: 204 kB / 465.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.1151, allocations: 7.938 kB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.1152, allocations: 12 kB / 465.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.1154, allocations: 123.9 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1154, allocations: 0 / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1154, allocations: 4 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1154, allocations: 4 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.1156, allocations: 72.17 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.1161, allocations: 364.9 kB / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.1162, allocations: 70.5 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.319e-05/0.1163, allocations: 64.86 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.864e-06/0.1163, allocations: 0 / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1163, allocations: 34.5 kB / 465.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.1163, allocations: 0 / 465.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003656/0.1167, allocations: 227.2 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.1168, allocations: 89.09 kB / 466.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.1169, allocations: 157 kB / 466.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1169, allocations: 25.7 kB / 466.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.117, allocations: 116 kB / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.1171, allocations: 47.2 kB / 466.5 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.1171, allocations: 25.64 kB / 466.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1173, allocations: 326.9 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.038e-05/0.1173, allocations: 43.97 kB / 466.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.477e-05/0.1174, allocations: 39.92 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.1176, allocations: 183.4 kB / 467.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1176, allocations: 4 kB / 467.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002129/0.1178, allocations: 175.2 kB / 467.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.1179, allocations: 45.69 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1179, allocations: 0 / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.1179, allocations: 0 / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-06/0.1179, allocations: 3.984 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1179, allocations: 8.062 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.244e-05/0.118, allocations: 3.906 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.118, allocations: 8 kB / 467.3 MB, free: 13.1 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.0001386/0.1181, allocations: 179.4 kB / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.1182, allocations: 11.91 kB / 467.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.659e-05/0.1182, allocations: 8.844 kB / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1182, allocations: 0 / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.1182, allocations: 0 / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1182, allocations: 3.938 kB / 467.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.1184, allocations: 221.4 kB / 467.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1185, allocations: 3.984 kB / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1185, allocations: 0 / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1185, allocations: 0 / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1185, allocations: 4 kB / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1185, allocations: 0 / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1185, allocations: 0 / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003916/0.1189, allocations: 373 kB / 468.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.119, allocations: 96.89 kB / 468.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.119, allocations: 4 kB / 468.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.351e-05/0.1191, allocations: 4 kB / 468.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.1191, allocations: 0 / 468.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.1191, allocations: 4 kB / 468.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.501e-05/0.1192, allocations: 117.7 kB / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1192, allocations: 0 / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009713/0.1202, allocations: 335.8 kB / 468.7 MB, free: 11.66 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.0018/0.122, allocations: 1.285 MB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.1224, allocations: 331.3 kB / 470.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1224, allocations: 0 / 470.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.1226, allocations: 263.4 kB / 470.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.123, allocations: 23.94 kB / 470.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.1254, allocations: 2.346 MB / 472.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.1257, allocations: 0.7352 MB / 473.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.743e-05/0.1257, allocations: 0 / 473.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.1258, allocations: 39.42 kB / 473.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1258, allocations: 0 / 473.7 MB, free: 6.484 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].