Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.Z_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001647/0.001647, allocations: 111.5 kB / 17.06 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.001846/0.001846, allocations: 200 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.493/1.493, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1746/0.1746, 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.001418/0.001418, allocations: 63.89 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1192, allocations: 55.24 MB / 486.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.004187/0.1234, allocations: 2.103 MB / 488.7 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003329/0.1268, allocations: 2.082 MB / 490.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.767e-05/0.1268, allocations: 4 kB / 490.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.127, allocations: 11.86 kB / 490.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.1271, allocations: 31.83 kB / 490.9 MB, free: 4.562 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.002404/0.1296, allocations: 0.8292 MB / 491.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.1297, allocations: 87.61 kB / 491.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.688e-05/0.1298, allocations: 4.125 kB / 491.8 MB, free: 3.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.386e-05/0.1299, allocations: 31.91 kB / 491.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.13, allocations: 55.75 kB / 491.9 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.13, allocations: 4 kB / 491.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002025/0.132, allocations: 1.411 MB / 493.3 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.1321, allocations: 39.84 kB / 493.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.899e-05/0.1322, allocations: 59.48 kB / 493.4 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.1338, allocations: 1.38 MB / 494.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1339, allocations: 0 / 494.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1339, allocations: 0 / 494.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1339, allocations: 4 kB / 494.8 MB, free: 0.6562 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007198/0.1346, allocations: 0.6058 MB / 495.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1347, allocations: 11.89 kB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.707e-05/0.1347, allocations: 46.67 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.193e-05/0.1348, allocations: 16.66 kB / 495.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.135, allocations: 211.4 kB / 495.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.135, allocations: 0 / 495.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.135, allocations: 0 / 495.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.1352, allocations: 134.6 kB / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.1352, allocations: 4 kB / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1353, allocations: 4 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1353, allocations: 7.922 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.1354, allocations: 92.3 kB / 495.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001714/0.1356, allocations: 213.9 kB / 496.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.1357, allocations: 158.8 kB / 496.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1359, allocations: 149.2 kB / 496.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.1359, allocations: 0 / 496.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.1359, allocations: 38.56 kB / 496.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 8.42e-07/0.1359, allocations: 0 / 496.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006954/0.1366, allocations: 0.4919 MB / 496.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.1367, allocations: 105.1 kB / 497 MB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1368, allocations: 162.4 kB / 497.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.1369, allocations: 29.7 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.1369, allocations: 108.8 kB / 497.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.137, allocations: 122.1 kB / 497.4 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.1371, allocations: 41.72 kB / 497.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1372, allocations: 338.8 kB / 497.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1373, allocations: 95.95 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.1375, allocations: 95.95 kB / 498 MB, free: 13.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1378, allocations: 381.3 kB / 498.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1378, allocations: 4 kB / 498.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003919/0.1382, allocations: 342.9 kB / 498.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.173e-05/0.1383, allocations: 81.58 kB / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1383, allocations: 4.062 kB / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1384, allocations: 0 / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.1384, allocations: 0 / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1384, allocations: 3.984 kB / 498.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.291e-05/0.1385, allocations: 19.75 kB / 498.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.1385, allocations: 16 kB / 498.8 MB, free: 12.31 MB / 382.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.0001938/0.1387, allocations: 231.4 kB / 499 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.1387, allocations: 23.81 kB / 499.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.571e-05/0.1388, allocations: 10.66 kB / 499.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1388, allocations: 4 kB / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1388, allocations: 0 / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1388, allocations: 0 / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.139, allocations: 249.2 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.139, allocations: 0 / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.139, allocations: 0 / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.139, allocations: 4 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.139, allocations: 4 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.139, allocations: 11.86 kB / 499.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.139, allocations: 4 kB / 499.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.14, allocations: 0.9236 MB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.152e-05/0.1401, allocations: 96.77 kB / 0.4886 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.1402, allocations: 8 kB / 0.4887 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.748e-05/0.1402, allocations: 4 kB / 0.4887 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.1403, allocations: 4 kB / 0.4887 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.1403, allocations: 11.98 kB / 0.4887 GB, free: 10.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.942e-05/0.1404, allocations: 132.2 kB / 0.4888 GB, free: 10.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1404, allocations: 0 / 0.4888 GB, free: 10.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001/0.1414, allocations: 359.9 kB / 0.4891 GB, free: 10.14 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.002393/0.1438, allocations: 1.718 MB / 0.4908 GB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.1452, allocations: 1.6 MB / 0.4924 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1452, allocations: 0 / 0.4924 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.1462, allocations: 1.37 MB / 0.4937 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.1465, allocations: 19.91 kB / 0.4937 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003981/0.1504, allocations: 3.661 MB / 0.4973 GB, free: 1.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1508, allocations: 0.7517 MB / 0.498 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.83e-05/0.1509, allocations: 3.984 kB / 0.4981 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.1509, allocations: 51.45 kB / 0.4981 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1509, allocations: 0 / 0.4981 GB, free: 0.7891 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].