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.00113/0.00113, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001177/0.001177, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.569/1.569, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1928/0.1928, allocations: 37.98 MB / 309.2 MB, free: 5.941 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.001461/0.001461, allocations: 71.91 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 55.24 MB / 486.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003741/0.1123, allocations: 2.153 MB / 488.8 MB, free: 6.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.114, allocations: 1.107 MB / 489.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.336e-05/0.1141, allocations: 0 / 489.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.1143, allocations: 15.86 kB / 489.9 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.1144, allocations: 55.78 kB / 490 MB, free: 5.469 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.0009669/0.1154, allocations: 283.2 kB / 490.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001651/0.1156, allocations: 119.5 kB / 490.3 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.473e-05/0.1156, allocations: 6.812 kB / 490.4 MB, free: 5.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.361e-05/0.1157, allocations: 51.81 kB / 490.4 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.1158, allocations: 71.72 kB / 490.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.1159, allocations: 4 kB / 490.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005758/0.1164, allocations: 411.2 kB / 490.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/0.1165, allocations: 39.89 kB / 490.9 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.777e-05/0.1166, allocations: 39.73 kB / 491 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005612/0.1172, allocations: 0.5152 MB / 491.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1172, allocations: 0 / 491.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1172, allocations: 0 / 491.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1172, allocations: 0 / 491.5 MB, free: 3.949 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.0004961/0.1177, allocations: 460.7 kB / 491.9 MB, free: 3.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1177, allocations: 15.89 kB / 491.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.2e-05/0.1178, allocations: 66.42 kB / 492 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.1179, allocations: 12.84 kB / 492 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.1181, allocations: 204 kB / 492.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.1181, allocations: 8.375 kB / 492.2 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.1181, allocations: 11.94 kB / 492.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.1184, allocations: 137.5 kB / 492.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.1184, allocations: 0 / 492.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1184, allocations: 3.938 kB / 492.4 MB, free: 2.941 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1184, allocations: 4 kB / 492.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.1185, allocations: 83.95 kB / 492.5 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004006/0.1189, allocations: 344.5 kB / 492.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.1191, allocations: 134.5 kB / 492.9 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.1192, allocations: 120.9 kB / 493 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.1192, allocations: 0 / 493 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1193, allocations: 34.5 kB / 493.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.002e-06/0.1193, allocations: 0 / 493.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004758/0.1198, allocations: 299.1 kB / 493.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.1198, allocations: 93.11 kB / 493.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.1199, allocations: 141.8 kB / 493.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.12, allocations: 29.7 kB / 493.6 MB, free: 1.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.12, allocations: 108.4 kB / 493.7 MB, free: 1.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.1201, allocations: 63 kB / 493.8 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.1201, allocations: 29.7 kB / 493.8 MB, free: 1.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1202, allocations: 318.8 kB / 494.1 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/0.1203, allocations: 59.97 kB / 494.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.567e-05/0.1204, allocations: 59.91 kB / 494.3 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.1206, allocations: 228.1 kB / 494.5 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1206, allocations: 4 kB / 494.5 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002466/0.1209, allocations: 231 kB / 494.7 MB, free: 452 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.173e-05/0.1209, allocations: 53.67 kB / 494.8 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.121, allocations: 0 / 494.8 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.121, allocations: 0 / 494.8 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.121, allocations: 0 / 494.8 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.121, allocations: 4 kB / 494.8 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.741e-05/0.1211, allocations: 7.938 kB / 494.8 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1211, allocations: 4 kB / 494.8 MB, free: 376 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.0001399/0.1212, allocations: 187.5 kB / 495 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.1213, allocations: 19.75 kB / 495 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.942e-05/0.1213, allocations: 13.19 kB / 495 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1213, allocations: 0 / 495 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1213, allocations: 7.938 kB / 495 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1213, allocations: 0 / 495 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.1215, allocations: 209.7 kB / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1216, allocations: 0 / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-06/0.1216, allocations: 3.938 kB / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.1216, allocations: 0 / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.1216, allocations: 8 kB / 495.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1216, allocations: 0 / 495.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1216, allocations: 7.938 kB / 495.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004429/0.122, allocations: 453.6 kB / 495.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/0.1221, allocations: 96.8 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1221, allocations: 4 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.736e-05/0.1222, allocations: 4 kB / 495.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.1222, allocations: 4 kB / 495.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.1223, allocations: 12.03 kB / 495.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.026e-05/0.1223, allocations: 103.2 kB / 495.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 495.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.1228, allocations: 143.9 kB / 496 MB, free: 15.01 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.001253/0.1241, allocations: 1.241 MB / 497.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005369/0.1246, allocations: 0.5617 MB / 497.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1246, allocations: 0 / 497.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003486/0.125, allocations: 471.3 kB / 498.3 MB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.1253, allocations: 15.94 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.00246/0.1278, allocations: 2.451 MB / 0.489 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.1281, allocations: 0.7392 MB / 0.4897 GB, free: 9.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.171e-05/0.1281, allocations: 0 / 0.4897 GB, free: 9.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.133e-05/0.1282, allocations: 39.36 kB / 0.4898 GB, free: 9.336 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1282, allocations: 0 / 0.4898 GB, free: 9.336 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].