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.001102/0.001102, allocations: 115.1 kB / 17.07 MB, free: 5.969 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.001191/0.001191, allocations: 198.9 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.363/1.363, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1789/0.1789, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001678/0.001678, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1243, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.004494/0.1288, allocations: 2.107 MB / 488.7 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.1325, allocations: 2.078 MB / 490.8 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1326, allocations: 3.938 kB / 490.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.1329, allocations: 11.92 kB / 490.8 MB, free: 4.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.1331, allocations: 27.84 kB / 490.8 MB, free: 4.57 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.002996/0.1361, allocations: 0.8369 MB / 491.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000177/0.1363, allocations: 75.69 kB / 491.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.102e-05/0.1363, allocations: 4.188 kB / 491.8 MB, free: 3.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1364, allocations: 39.83 kB / 491.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.832e-05/0.1365, allocations: 43.83 kB / 491.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.1366, allocations: 4 kB / 491.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002618/0.1392, allocations: 1.407 MB / 493.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.824e-05/0.1393, allocations: 47.84 kB / 493.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.583e-05/0.1394, allocations: 55.48 kB / 493.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.1418, allocations: 1.38 MB / 494.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1418, allocations: 4 kB / 494.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1418, allocations: 0 / 494.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.1419, allocations: 3.938 kB / 494.7 MB, free: 0.668 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.001036/0.1429, allocations: 0.6018 MB / 495.3 MB, free: 12 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.143, allocations: 15.94 kB / 495.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.889e-05/0.143, allocations: 46.69 kB / 495.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.1431, allocations: 24.66 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.1433, allocations: 203.4 kB / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.1434, allocations: 7.984 kB / 495.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.1434, allocations: 0 / 495.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.1436, allocations: 138.6 kB / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.1436, allocations: 0 / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1436, allocations: 0 / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1436, allocations: 0 / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.1438, allocations: 96.28 kB / 495.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002108/0.144, allocations: 217.9 kB / 496.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.1442, allocations: 154.9 kB / 496.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.1443, allocations: 153.1 kB / 496.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-06/0.1443, allocations: 7.922 kB / 496.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.1444, allocations: 30.56 kB / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 9.92e-07/0.1444, allocations: 0 / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007015/0.1451, allocations: 0.4958 MB / 496.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.1452, allocations: 109.1 kB / 497 MB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1454, allocations: 166.4 kB / 497.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.1454, allocations: 25.7 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.1455, allocations: 104.8 kB / 497.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.1456, allocations: 130.1 kB / 497.4 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.19e-05/0.1457, allocations: 29.7 kB / 497.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1458, allocations: 342.8 kB / 497.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.1459, allocations: 91.97 kB / 497.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.146, allocations: 107.9 kB / 498 MB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1464, allocations: 377.4 kB / 498.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1464, allocations: 0 / 498.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003985/0.1468, allocations: 338.9 kB / 498.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.34e-05/0.1469, allocations: 89.62 kB / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1469, allocations: 4 kB / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1469, allocations: 0 / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.147, allocations: 0 / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.147, allocations: 0 / 498.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.804e-05/0.147, allocations: 19.75 kB / 498.8 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.1471, allocations: 12.06 kB / 498.8 MB, free: 12.32 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.0001991/0.1473, allocations: 235.4 kB / 499 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.1473, allocations: 23.75 kB / 499.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.913e-05/0.1474, allocations: 14.66 kB / 499.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1474, allocations: 3.938 kB / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1474, allocations: 3.984 kB / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1474, allocations: 0 / 499.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.1476, allocations: 241.2 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1476, allocations: 3.984 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1476, allocations: 4 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1476, allocations: 0 / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.1477, allocations: 8 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1477, allocations: 0 / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1477, allocations: 3.938 kB / 499.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009998/0.1487, allocations: 0.9236 MB / 0.4885 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.1487, allocations: 96.77 kB / 0.4886 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.1488, allocations: 11.98 kB / 0.4886 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.108e-05/0.1488, allocations: 8.031 kB / 0.4887 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.1489, allocations: 8 kB / 0.4887 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.1489, allocations: 8 kB / 0.4887 GB, free: 10.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.149, allocations: 132.2 kB / 0.4888 GB, free: 10.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.149, allocations: 3.938 kB / 0.4888 GB, free: 10.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001048/0.1501, allocations: 347.9 kB / 0.4891 GB, free: 10.15 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.002342/0.1524, allocations: 1.719 MB / 0.4908 GB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.1542, allocations: 1.593 MB / 0.4924 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1542, allocations: 3.938 kB / 0.4924 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.1554, allocations: 1.374 MB / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.1557, allocations: 23.81 kB / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.1601, allocations: 3.669 MB / 0.4973 GB, free: 1.617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.1604, allocations: 0.7517 MB / 0.4981 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.609e-05/0.1605, allocations: 0 / 0.4981 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.1605, allocations: 47.42 kB / 0.4981 GB, free: 0.793 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1605, allocations: 4 kB / 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].