Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001147/0.001147, 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.001204/0.001204, 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.519/1.519, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2116/0.2116, 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.001462/0.001462, allocations: 71.89 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.117, allocations: 55.25 MB / 486.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004177/0.1212, allocations: 2.095 MB / 488.7 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.1248, allocations: 2.078 MB / 490.8 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.239e-05/0.1249, allocations: 3.938 kB / 490.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.1251, allocations: 15.91 kB / 490.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1252, allocations: 31.84 kB / 490.8 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.002578/0.1278, allocations: 0.8331 MB / 491.7 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.128, allocations: 79.69 kB / 491.8 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5e-05/0.128, allocations: 4.188 kB / 491.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.444e-05/0.1281, allocations: 31.84 kB / 491.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.146e-05/0.1282, allocations: 47.81 kB / 491.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.1282, allocations: 4 kB / 491.8 MB, free: 3.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.1305, allocations: 1.411 MB / 493.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.39e-05/0.1306, allocations: 31.91 kB / 493.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.1307, allocations: 39.61 kB / 493.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.1329, allocations: 1.349 MB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1329, allocations: 0 / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1329, allocations: 7.938 kB / 494.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.1329, allocations: 0 / 494.7 MB, free: 0.7227 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009359/0.1339, allocations: 0.5513 MB / 495.2 MB, free: 120 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1339, allocations: 19.89 kB / 495.3 MB, free: 100 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.134, allocations: 38.73 kB / 495.3 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.134, allocations: 16.75 kB / 495.3 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1343, allocations: 203.4 kB / 495.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1343, allocations: 0 / 495.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.1343, allocations: 0 / 495.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.1345, allocations: 101.5 kB / 495.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1345, allocations: 0 / 495.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.1345, allocations: 3.938 kB / 495.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1346, allocations: 3.938 kB / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.948e-05/0.1347, allocations: 63.97 kB / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.1349, allocations: 193.4 kB / 495.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.135, allocations: 98.55 kB / 496 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.835e-05/0.1351, allocations: 92.86 kB / 496.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.1351, allocations: 0 / 496.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.1352, allocations: 30.56 kB / 496.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.1352, allocations: 4 kB / 496.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005551/0.1357, allocations: 323.2 kB / 496.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.68e-05/0.1358, allocations: 101.1 kB / 496.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.136, allocations: 146.2 kB / 496.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.136, allocations: 25.7 kB / 496.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.1361, allocations: 100.6 kB / 496.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.061e-05/0.1362, allocations: 78.81 kB / 496.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.242e-05/0.1362, allocations: 29.7 kB / 496.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1364, allocations: 334.8 kB / 497.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.219e-05/0.1365, allocations: 59.97 kB / 497.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-05/0.1365, allocations: 59.97 kB / 497.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.1368, allocations: 253.7 kB / 497.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1368, allocations: 0 / 497.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002678/0.1371, allocations: 238.9 kB / 497.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.043e-05/0.1372, allocations: 61.66 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.1372, allocations: 4 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1372, allocations: 0 / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-07/0.1372, allocations: 0 / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.1372, allocations: 8.047 kB / 497.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.734e-05/0.1373, allocations: 11.84 kB / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.1373, allocations: 12 kB / 497.9 MB, free: 13.23 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.0001553/0.1375, allocations: 191.4 kB / 498.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.1375, allocations: 19.81 kB / 498.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.1375, allocations: 13.12 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1376, allocations: 0 / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.1376, allocations: 7.984 kB / 498.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1376, allocations: 0 / 498.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.1377, allocations: 213.4 kB / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1377, allocations: 7.938 kB / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1377, allocations: 0 / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1378, allocations: 0 / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1378, allocations: 4 kB / 498.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1378, allocations: 3.938 kB / 498.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1378, allocations: 0 / 498.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.1384, allocations: 0.5139 MB / 498.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.656e-05/0.1385, allocations: 96.89 kB / 499 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.1385, allocations: 4 kB / 499 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.814e-05/0.1385, allocations: 4 kB / 499 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.392e-05/0.1386, allocations: 11.98 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.1386, allocations: 4 kB / 499 MB, free: 12.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.49e-05/0.1387, allocations: 115.1 kB / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1387, allocations: 4 kB / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009589/0.1397, allocations: 331.9 kB / 499.4 MB, free: 11.6 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.001919/0.1416, allocations: 1.328 MB / 0.489 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00074/0.1423, allocations: 0.7101 MB / 0.4897 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1423, allocations: 0 / 0.4897 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004659/0.1428, allocations: 0.5736 MB / 0.4903 GB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.143, allocations: 19.91 kB / 0.4903 GB, free: 8.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.1461, allocations: 2.653 MB / 0.4929 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1465, allocations: 0.7278 MB / 0.4936 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.731e-05/0.1465, allocations: 0 / 0.4936 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.959e-05/0.1466, allocations: 31.42 kB / 0.4936 GB, free: 5.383 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1466, allocations: 4 kB / 0.4936 GB, free: 5.379 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].