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.001228/0.001228, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001274/0.001274, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.355/1.355, allocations: 205.1 MB / 223.3 MB, free: 12.47 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1605/0.1605, allocations: 37.98 MB / 308.6 MB, free: 6.238 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.001288/0.001288, allocations: 71.03 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2214, allocations: 55.23 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002907/0.2243, allocations: 2.148 MB / 432.1 MB, free: 17.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.2268, allocations: 2.215 MB / 434.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.2269, allocations: 0 / 434.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.227, allocations: 15.92 kB / 434.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.155e-05/0.2271, allocations: 19.89 kB / 434.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.2284, allocations: 0.6826 MB / 435 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.922e-05/0.2285, allocations: 131.6 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.062e-05/0.2285, allocations: 4.188 kB / 435.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.076e-05/0.2286, allocations: 27.86 kB / 435.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.693e-05/0.2287, allocations: 47.83 kB / 435.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.2287, allocations: 7.938 kB / 435.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.23, allocations: 1.232 MB / 436.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.183e-05/0.23, allocations: 31.91 kB / 436.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.2301, allocations: 43.61 kB / 436.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009582/0.231, allocations: 1.3 MB / 437.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.231, allocations: 4 kB / 437.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2311, allocations: 0 / 437.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.2311, allocations: 0 / 437.9 MB, free: 11.82 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005007/0.2316, allocations: 0.5591 MB / 438.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2316, allocations: 8.031 kB / 438.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.152e-05/0.2316, allocations: 42.73 kB / 438.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.2317, allocations: 16.75 kB / 438.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.2318, allocations: 200.8 kB / 438.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.2318, allocations: 4 kB / 438.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.2319, allocations: 7.984 kB / 438.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.232, allocations: 97.66 kB / 438.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.232, allocations: 0 / 438.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.232, allocations: 8 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.2321, allocations: 7.875 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.817e-05/0.2321, allocations: 59.91 kB / 438.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.2323, allocations: 189.4 kB / 439.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.935e-05/0.2324, allocations: 102.5 kB / 439.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.22e-05/0.2324, allocations: 88.86 kB / 439.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.2325, allocations: 3.984 kB / 439.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.2325, allocations: 42.55 kB / 439.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 9.31e-07/0.2325, allocations: 0 / 439.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003603/0.2328, allocations: 318.9 kB / 439.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.2329, allocations: 93.11 kB / 439.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.233, allocations: 158.5 kB / 439.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.246e-06/0.233, allocations: 25.73 kB / 439.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.013e-05/0.233, allocations: 104.6 kB / 440 MB, free: 9.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.2331, allocations: 74.84 kB / 440 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.2331, allocations: 29.7 kB / 440.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.2332, allocations: 330.8 kB / 440.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.71e-05/0.2332, allocations: 59.97 kB / 440.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.043e-05/0.2333, allocations: 59.97 kB / 440.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.2335, allocations: 253.7 kB / 440.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2335, allocations: 0 / 440.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001861/0.2337, allocations: 247 kB / 441 MB, free: 8.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.33e-05/0.2337, allocations: 65.66 kB / 441.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2337, allocations: 0 / 441.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2337, allocations: 0 / 441.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.2337, allocations: 0 / 441.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.2337, allocations: 0 / 441.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.149e-05/0.2338, allocations: 15.84 kB / 441.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.2338, allocations: 4 kB / 441.1 MB, free: 8.32 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 9.659e-05/0.2339, allocations: 195.4 kB / 441.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.234, allocations: 19.84 kB / 441.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.234, allocations: 17.17 kB / 441.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.234, allocations: 0 / 441.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.234, allocations: 0 / 441.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.234, allocations: 4 kB / 441.3 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.397e-05/0.2341, allocations: 205.4 kB / 441.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2341, allocations: 0 / 441.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2341, allocations: 3.938 kB / 441.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.2341, allocations: 0 / 441.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.2341, allocations: 11.98 kB / 441.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2341, allocations: 0 / 441.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2341, allocations: 4 kB / 441.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003925/0.2345, allocations: 0.5179 MB / 442.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.627e-05/0.2346, allocations: 100.8 kB / 442.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.2346, allocations: 4 kB / 442.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.662e-05/0.2346, allocations: 8 kB / 442.2 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.253e-05/0.2347, allocations: 0 / 442.2 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.2347, allocations: 8 kB / 442.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.2347, allocations: 123 kB / 442.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2347, allocations: 0 / 442.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005924/0.2353, allocations: 336 kB / 442.6 MB, free: 6.68 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.001207/0.2366, allocations: 1.322 MB / 443.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004714/0.237, allocations: 0.71 MB / 444.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.237, allocations: 0 / 444.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003299/0.2374, allocations: 0.5735 MB / 445.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/0.2376, allocations: 16.34 kB / 445.2 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.2395, allocations: 2.69 MB / 447.9 MB, free: 1.227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.2396, allocations: 0.7241 MB / 448.7 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.134e-05/0.2397, allocations: 0 / 448.7 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.2397, allocations: 39.45 kB / 448.7 MB, free: 448 kB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2397, allocations: 0 / 448.7 MB, free: 448 kB / 318.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].