Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_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.001229/0.001234, allocations: 113.2 kB / 17.06 MB, free: 5.977 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.001336/0.001336, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1696/0.1696, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.00399/0.113, allocations: 2.157 MB / 488.8 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.1149, allocations: 1.107 MB / 489.9 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.316e-05/0.115, allocations: 3.938 kB / 489.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.1151, allocations: 11.92 kB / 489.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.1153, allocations: 55.72 kB / 490 MB, free: 5.473 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0009383/0.1162, allocations: 279.3 kB / 490.2 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001902/0.1164, allocations: 119.6 kB / 490.3 MB, free: 5.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.931e-05/0.1165, allocations: 10.81 kB / 490.4 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.1166, allocations: 47.81 kB / 490.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.1167, allocations: 67.73 kB / 490.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.1168, allocations: 0 / 490.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000694/0.1175, allocations: 427.1 kB / 490.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.548e-05/0.1175, allocations: 31.89 kB / 490.9 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.794e-05/0.1176, allocations: 39.75 kB / 491 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008919/0.1185, allocations: 0.5152 MB / 491.5 MB, free: 3.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1185, allocations: 4 kB / 491.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1185, allocations: 0 / 491.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1186, allocations: 0 / 491.5 MB, free: 3.953 MB / 366.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.0008259/0.1194, allocations: 460.7 kB / 491.9 MB, free: 3.449 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.1195, allocations: 11.89 kB / 491.9 MB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.1196, allocations: 66.44 kB / 492 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.1197, allocations: 12.84 kB / 492 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.12, allocations: 207.9 kB / 492.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.12, allocations: 8.375 kB / 492.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.1201, allocations: 11.94 kB / 492.2 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.1203, allocations: 133.5 kB / 492.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1204, allocations: 0 / 492.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.1204, allocations: 8 kB / 492.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1204, allocations: 0 / 492.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.1205, allocations: 79.95 kB / 492.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005428/0.1211, allocations: 344.5 kB / 492.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.1213, allocations: 138.5 kB / 492.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1214, allocations: 120.9 kB / 493 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-06/0.1214, allocations: 0 / 493 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1215, allocations: 34.5 kB / 493.1 MB, free: 2.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.374e-05/0.1215, allocations: 3.984 kB / 493.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005099/0.122, allocations: 303.1 kB / 493.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.1221, allocations: 93.09 kB / 493.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.1222, allocations: 133.8 kB / 493.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1222, allocations: 29.73 kB / 493.6 MB, free: 1.574 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.1223, allocations: 104.4 kB / 493.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.1223, allocations: 70.98 kB / 493.8 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.1224, allocations: 29.64 kB / 493.8 MB, free: 1.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1225, allocations: 326.8 kB / 494.1 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.1226, allocations: 55.97 kB / 494.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.711e-05/0.1227, allocations: 51.97 kB / 494.2 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.1229, allocations: 224.2 kB / 494.5 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1229, allocations: 4.031 kB / 494.5 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002618/0.1232, allocations: 231 kB / 494.7 MB, free: 464 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.38e-05/0.1232, allocations: 61.66 kB / 494.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1233, allocations: 0 / 494.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1233, allocations: 0 / 494.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1233, allocations: 0 / 494.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1233, allocations: 0 / 494.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.618e-05/0.1234, allocations: 7.938 kB / 494.8 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.1234, allocations: 8 kB / 494.8 MB, free: 380 kB / 366.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.000132/0.1235, allocations: 187.5 kB / 495 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.1236, allocations: 23.78 kB / 495 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.505e-05/0.1236, allocations: 5.188 kB / 495 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1236, allocations: 0 / 495 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1236, allocations: 7.938 kB / 495 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1236, allocations: 0 / 495 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.1238, allocations: 209.5 kB / 495.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1239, allocations: 0 / 495.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.925e-06/0.1239, allocations: 3.938 kB / 495.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1239, allocations: 4 kB / 495.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1239, allocations: 8 kB / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1239, allocations: 4 kB / 495.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1239, allocations: 0 / 495.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.1244, allocations: 457.5 kB / 495.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.1245, allocations: 96.8 kB / 495.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.1245, allocations: 4 kB / 495.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.656e-05/0.1246, allocations: 4 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.168e-05/0.1246, allocations: 4 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.1246, allocations: 4 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.401e-05/0.1247, allocations: 111.3 kB / 495.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1247, allocations: 0 / 495.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.1253, allocations: 139.9 kB / 496 MB, free: 15.02 MB / 382.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.001545/0.1268, allocations: 1.233 MB / 497.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005395/0.1274, allocations: 0.5695 MB / 497.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1274, allocations: 3.938 kB / 497.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.1277, allocations: 471.3 kB / 498.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.128, allocations: 19.98 kB / 498.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.1306, allocations: 2.452 MB / 0.489 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1309, allocations: 0.7392 MB / 0.4897 GB, free: 9.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.952e-05/0.131, allocations: 0 / 0.4897 GB, free: 9.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.131, allocations: 35.42 kB / 0.4898 GB, free: 9.34 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.131, allocations: 0 / 0.4898 GB, free: 9.34 MB / 382.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].