Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.0008451/0.0008451, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.00107/0.00107, allocations: 182 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.238/1.238, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1651/0.1651, allocations: 38.06 MB / 310.1 MB, free: 5.902 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.0006667/0.0006667, allocations: 23.12 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2217, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.001778/0.2235, allocations: 1.802 MB / 435.4 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.2257, allocations: 2.172 MB / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.75e-05/0.2258, allocations: 0 / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.2259, allocations: 11.91 kB / 437.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.407e-05/0.226, allocations: 23.89 kB / 437.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.2274, allocations: 0.6865 MB / 438.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.399e-05/0.2275, allocations: 119.7 kB / 438.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.743e-05/0.2275, allocations: 192 / 438.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.384e-05/0.2276, allocations: 35.78 kB / 438.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.574e-05/0.2277, allocations: 39.89 kB / 438.5 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.2277, allocations: 3.938 kB / 438.5 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.229, allocations: 1.236 MB / 439.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.229, allocations: 19.97 kB / 439.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.229, allocations: 45.52 kB / 439.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009889/0.23, allocations: 1.273 MB / 441.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2301, allocations: 0 / 441.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2301, allocations: 0 / 441.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.2301, allocations: 0 / 441.1 MB, free: 11.14 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004544/0.2305, allocations: 0.4931 MB / 441.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.2306, allocations: 12.03 kB / 441.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.64e-05/0.2306, allocations: 30.75 kB / 441.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.2306, allocations: 8.844 kB / 441.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.2308, allocations: 195.3 kB / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.2308, allocations: 3.984 kB / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.2308, allocations: 0 / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.2309, allocations: 57.66 kB / 441.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2309, allocations: 0 / 441.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.2309, allocations: 0 / 441.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.231, allocations: 4 kB / 441.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.781e-05/0.231, allocations: 23.98 kB / 441.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001043/0.2311, allocations: 173.5 kB / 442.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.95e-05/0.2312, allocations: 50.5 kB / 442.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.2312, allocations: 32.88 kB / 442.1 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.2312, allocations: 4 kB / 442.1 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.2313, allocations: 38.5 kB / 442.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.2313, allocations: 0 / 442.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002038/0.2315, allocations: 151.2 kB / 442.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.2315, allocations: 85.09 kB / 442.4 MB, free: 9.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.892e-05/0.2316, allocations: 120.7 kB / 442.5 MB, free: 9.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.2316, allocations: 29.7 kB / 442.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.928e-05/0.2316, allocations: 96.06 kB / 442.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.2317, allocations: 19.66 kB / 442.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.2317, allocations: 17.72 kB / 442.7 MB, free: 9.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.167e-05/0.2318, allocations: 326.8 kB / 443 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.111e-05/0.2318, allocations: 19.98 kB / 443 MB, free: 8.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.565e-05/0.2318, allocations: 23.98 kB / 443 MB, free: 8.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.52e-05/0.2319, allocations: 124.2 kB / 443.2 MB, free: 8.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2319, allocations: 0 / 443.2 MB, free: 8.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001124/0.232, allocations: 131.4 kB / 443.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.2321, allocations: 41.69 kB / 443.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2321, allocations: 0 / 443.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.2321, allocations: 0 / 443.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.854e-06/0.2321, allocations: 4.062 kB / 443.3 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.427e-06/0.2321, allocations: 7.938 kB / 443.3 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.696e-05/0.2322, allocations: 0 / 443.3 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2322, allocations: 7.984 kB / 443.4 MB, free: 8.57 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 6.632e-05/0.2322, allocations: 159.5 kB / 443.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.2323, allocations: 7.906 kB / 443.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.012e-05/0.2323, allocations: 8.359 kB / 443.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2323, allocations: 3.984 kB / 443.5 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2323, allocations: 8 kB / 443.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.2323, allocations: 4 kB / 443.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.424e-05/0.2324, allocations: 169.6 kB / 443.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.2324, allocations: 0 / 443.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2324, allocations: 0 / 443.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.2324, allocations: 0 / 443.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.2324, allocations: 4 kB / 443.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2324, allocations: 3.984 kB / 443.7 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2324, allocations: 0 / 443.7 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.2326, allocations: 218.6 kB / 443.9 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.2326, allocations: 92.92 kB / 444 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.2326, allocations: 7.984 kB / 444 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.136e-05/0.2327, allocations: 3.938 kB / 444 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.2327, allocations: 4 kB / 444 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.2327, allocations: 0 / 444 MB, free: 7.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.071e-05/0.2327, allocations: 99.27 kB / 444.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2327, allocations: 0 / 444.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000538/0.2333, allocations: 315.9 kB / 444.4 MB, free: 7.375 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.0009496/0.2342, allocations: 1.02 MB / 445.5 MB, free: 6.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001871/0.2344, allocations: 191.3 kB / 445.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2344, allocations: 3.938 kB / 445.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.567e-05/0.2345, allocations: 155.5 kB / 445.8 MB, free: 5.953 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.2347, allocations: 11.94 kB / 445.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.2358, allocations: 1.718 MB / 447.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.101e-05/0.2359, allocations: 0.7005 MB / 448.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.038e-05/0.2359, allocations: 7.938 kB / 448.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/0.236, allocations: 19.38 kB / 448.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.236, allocations: 0 / 448.3 MB, free: 3.383 MB / 318.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].