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.0009234/0.0009234, allocations: 89.94 kB / 16.65 MB, free: 6.594 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.001004/0.001004, allocations: 181.8 kB / 17.56 MB, free: 6.203 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.256/1.256, allocations: 205.4 MB / 223.8 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1694/0.1694, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.0005369/0.0005369, allocations: 16 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2293, allocations: 56.32 MB / 433.6 MB, free: 18.63 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.00205/0.2314, allocations: 1.809 MB / 435.4 MB, free: 16.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.2339, allocations: 2.165 MB / 437.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.262e-05/0.2339, allocations: 4 kB / 437.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.2341, allocations: 7.922 kB / 437.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.832e-05/0.2342, allocations: 35.83 kB / 437.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.2356, allocations: 0.6776 MB / 438.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.2357, allocations: 127.6 kB / 438.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.2358, allocations: 192 / 438.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.24e-05/0.2358, allocations: 31.86 kB / 438.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.2359, allocations: 55.75 kB / 438.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.2359, allocations: 4 kB / 438.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.2371, allocations: 1.236 MB / 439.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.989e-05/0.2372, allocations: 47.83 kB / 439.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.543e-05/0.2373, allocations: 77.27 kB / 439.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.2383, allocations: 1.331 MB / 441.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2383, allocations: 3.984 kB / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2383, allocations: 0 / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.2383, allocations: 0 / 441.2 MB, free: 10.98 MB / 318.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.000565/0.2389, allocations: 0.5979 MB / 441.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2389, allocations: 8.031 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.464e-05/0.239, allocations: 46.73 kB / 441.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.427e-05/0.239, allocations: 16.75 kB / 441.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.2392, allocations: 219.2 kB / 442.1 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.2392, allocations: 0 / 442.1 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.2392, allocations: 4 kB / 442.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.2394, allocations: 134.6 kB / 442.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2394, allocations: 0 / 442.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.2394, allocations: 3.984 kB / 442.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2394, allocations: 0 / 442.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.629e-05/0.2395, allocations: 100.3 kB / 442.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.2396, allocations: 214 kB / 442.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.2398, allocations: 158.9 kB / 442.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.181e-05/0.2399, allocations: 145.2 kB / 442.8 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.2399, allocations: 0 / 442.8 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.2399, allocations: 34.55 kB / 442.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 8.52e-07/0.2399, allocations: 0 / 442.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004764/0.2404, allocations: 499.7 kB / 443.3 MB, free: 8.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.2404, allocations: 113.1 kB / 443.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.2405, allocations: 174.9 kB / 443.6 MB, free: 8.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.2406, allocations: 25.7 kB / 443.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.2406, allocations: 108.7 kB / 443.8 MB, free: 8.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.199e-05/0.2407, allocations: 134 kB / 443.9 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.2407, allocations: 33.64 kB / 443.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.2408, allocations: 338.8 kB / 444.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.2408, allocations: 95.95 kB / 444.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.09e-05/0.2409, allocations: 91.97 kB / 444.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.2412, allocations: 381.4 kB / 444.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2412, allocations: 0 / 444.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002707/0.2414, allocations: 342.9 kB / 445.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.94e-05/0.2415, allocations: 89.62 kB / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2415, allocations: 0 / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2415, allocations: 0 / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.2416, allocations: 0 / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2416, allocations: 0 / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.724e-05/0.2416, allocations: 19.78 kB / 445.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.2417, allocations: 11.98 kB / 445.3 MB, free: 6.641 MB / 318.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.0001331/0.2418, allocations: 239.4 kB / 445.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.2418, allocations: 27.72 kB / 445.5 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.637e-05/0.2419, allocations: 18.64 kB / 445.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.2419, allocations: 0 / 445.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2419, allocations: 0 / 445.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2419, allocations: 0 / 445.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.242, allocations: 237.2 kB / 445.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.242, allocations: 0 / 445.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.242, allocations: 0 / 445.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.242, allocations: 4 kB / 445.8 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.242, allocations: 12 kB / 445.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.242, allocations: 0 / 445.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.242, allocations: 0 / 445.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006843/0.2427, allocations: 0.9198 MB / 446.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.769e-05/0.2428, allocations: 104.7 kB / 446.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.2428, allocations: 8 kB / 446.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.644e-05/0.2429, allocations: 4 kB / 446.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.2429, allocations: 12.03 kB / 446.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.2429, allocations: 8 kB / 446.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.743e-05/0.243, allocations: 127.2 kB / 447 MB, free: 4.828 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.243, allocations: 0 / 447 MB, free: 4.828 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006885/0.2437, allocations: 363.8 kB / 447.3 MB, free: 4.473 MB / 318.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.001467/0.2451, allocations: 1.725 MB / 449 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009087/0.2461, allocations: 1.593 MB / 450.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2461, allocations: 0 / 450.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007892/0.2469, allocations: 1.374 MB / 452 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.2471, allocations: 12 kB / 452 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.2508, allocations: 3.737 MB / 455.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2511, allocations: 0.752 MB / 456.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.286e-05/0.2511, allocations: 0 / 456.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.2512, allocations: 51.42 kB / 456.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2512, allocations: 0 / 456.6 MB, free: 11.05 MB / 334.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].