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.001341/0.001341, allocations: 105.8 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.001316/0.001316, 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.387/1.387, 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-master/package.mo): time 0.1865/0.1865, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 65.86 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1079, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.0037/0.1116, allocations: 2.148 MB / 459.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1136, allocations: 1.064 MB / 460.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.719e-05/0.1137, allocations: 0 / 460.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.1139, allocations: 11.91 kB / 460.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1141, allocations: 59.8 kB / 460.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1152, allocations: 291.2 kB / 460.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000217/0.1155, allocations: 115.6 kB / 460.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.76e-05/0.1155, allocations: 7.984 kB / 460.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.1156, allocations: 43.84 kB / 460.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.1158, allocations: 71.72 kB / 460.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.1158, allocations: 0 / 460.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007083/0.1165, allocations: 415.1 kB / 461.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.1166, allocations: 35.91 kB / 461.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.958e-05/0.1167, allocations: 43.67 kB / 461.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008126/0.1175, allocations: 0.5069 MB / 461.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1175, allocations: 0 / 461.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1175, allocations: 3.938 kB / 461.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1175, allocations: 0 / 461.8 MB, free: 3.141 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.0005547/0.1181, allocations: 460.8 kB / 462.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.1181, allocations: 19.83 kB / 462.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.043e-05/0.1182, allocations: 66.39 kB / 462.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.1183, allocations: 12.84 kB / 462.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.1185, allocations: 204 kB / 462.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.1186, allocations: 8.312 kB / 462.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.1186, allocations: 11.94 kB / 462.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.1188, allocations: 129.6 kB / 462.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1188, allocations: 0 / 462.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1189, allocations: 4 kB / 462.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1189, allocations: 0 / 462.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.119, allocations: 90.81 kB / 462.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004252/0.1194, allocations: 356.4 kB / 463.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.1196, allocations: 126.5 kB / 463.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.1197, allocations: 124.8 kB / 463.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.1197, allocations: 0 / 463.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1198, allocations: 38.5 kB / 463.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.143e-06/0.1198, allocations: 0 / 463.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004994/0.1203, allocations: 295.2 kB / 463.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.1203, allocations: 93.09 kB / 463.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1205, allocations: 133.1 kB / 463.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1205, allocations: 33.7 kB / 463.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.1206, allocations: 100.5 kB / 464 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.975e-05/0.1206, allocations: 66.94 kB / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.1207, allocations: 33.73 kB / 464.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1208, allocations: 322.8 kB / 464.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-05/0.1209, allocations: 59.91 kB / 464.5 MB, free: 176 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.391e-05/0.121, allocations: 55.97 kB / 464.6 MB, free: 120 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.1213, allocations: 230.9 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1213, allocations: 0 / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002711/0.1215, allocations: 223.1 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.496e-05/0.1216, allocations: 53.67 kB / 465 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1216, allocations: 0 / 465 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1216, allocations: 4.062 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1216, allocations: 0 / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1217, allocations: 4 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.673e-05/0.1217, allocations: 4 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1217, allocations: 8 kB / 465.1 MB, free: 15.57 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.0001601/0.1219, allocations: 187.4 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.322e-05/0.122, allocations: 31.67 kB / 465.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.818e-05/0.122, allocations: 17.11 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.122, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.122, allocations: 4 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.122, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/0.1222, allocations: 217.4 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1222, allocations: 0 / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.1223, allocations: 3.938 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1223, allocations: 0 / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1223, allocations: 7.984 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1223, allocations: 0 / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1223, allocations: 4 kB / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004596/0.1228, allocations: 447.2 kB / 466 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.1228, allocations: 96.8 kB / 466.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.435e-05/0.1229, allocations: 4 kB / 466.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.04e-05/0.1229, allocations: 8 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.629e-05/0.123, allocations: 3.984 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.123, allocations: 11.94 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.871e-05/0.1231, allocations: 103.3 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1231, allocations: 0 / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005016/0.1236, allocations: 139.9 kB / 466.3 MB, free: 14.21 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.001445/0.125, allocations: 1.225 MB / 467.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005992/0.1256, allocations: 0.5656 MB / 468.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1257, allocations: 0 / 468.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004072/0.1261, allocations: 475.4 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.1264, allocations: 23.92 kB / 468.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.1293, allocations: 2.421 MB / 471 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1297, allocations: 0.7351 MB / 471.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.023e-05/0.1297, allocations: 0 / 471.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.1298, allocations: 35.42 kB / 471.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1298, allocations: 0 / 471.8 MB, free: 8.57 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].