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.001098/0.001098, allocations: 112.6 kB / 16.51 MB, free: 6.715 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.001083/0.001083, 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.293/1.293, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 37.99 MB / 308.6 MB, free: 6.254 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.00134/0.00134, allocations: 71.91 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2391, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003181/0.2423, allocations: 2.144 MB / 432.1 MB, free: 17.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.245, allocations: 2.219 MB / 434.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.615e-05/0.2451, allocations: 0 / 434.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.2453, allocations: 11.92 kB / 434.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.203e-05/0.2454, allocations: 23.89 kB / 434.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.247, allocations: 0.6843 MB / 435 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.2471, allocations: 127.6 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.282e-05/0.2472, allocations: 4.188 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.236e-05/0.2473, allocations: 27.84 kB / 435.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.541e-05/0.2474, allocations: 51.81 kB / 435.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.2474, allocations: 11.94 kB / 435.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.2489, allocations: 1.232 MB / 436.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.195e-05/0.249, allocations: 55.75 kB / 436.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.781e-05/0.249, allocations: 51.5 kB / 436.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.2502, allocations: 1.327 MB / 437.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.2502, allocations: 0 / 437.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2502, allocations: 0 / 437.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2502, allocations: 0 / 437.9 MB, free: 11.76 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.0005869/0.2508, allocations: 0.6057 MB / 438.5 MB, free: 11.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2508, allocations: 12.03 kB / 438.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.146e-05/0.2509, allocations: 46.73 kB / 438.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.409e-05/0.2509, allocations: 24.64 kB / 438.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.2511, allocations: 207.3 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.2511, allocations: 4 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.2511, allocations: 0 / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.2513, allocations: 142.6 kB / 439 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.2513, allocations: 0 / 439 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2513, allocations: 4 kB / 439 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2513, allocations: 0 / 439 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.655e-05/0.2514, allocations: 100.3 kB / 439.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001413/0.2516, allocations: 210 kB / 439.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.2517, allocations: 162.8 kB / 439.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.2518, allocations: 145.2 kB / 439.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.714e-06/0.2518, allocations: 3.938 kB / 439.6 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.2518, allocations: 34.56 kB / 439.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.192e-06/0.2519, allocations: 0 / 439.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005465/0.2524, allocations: 499.5 kB / 440.1 MB, free: 9.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.2525, allocations: 109.1 kB / 440.2 MB, free: 9.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.2526, allocations: 170.9 kB / 440.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2526, allocations: 25.7 kB / 440.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.2526, allocations: 108.8 kB / 440.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.2527, allocations: 126 kB / 440.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.2528, allocations: 37.73 kB / 440.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.711e-05/0.2528, allocations: 338.8 kB / 441 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.413e-05/0.2529, allocations: 95.95 kB / 441.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.597e-05/0.253, allocations: 103.9 kB / 441.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.2533, allocations: 377.4 kB / 441.6 MB, free: 7.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2533, allocations: 0 / 441.6 MB, free: 7.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002894/0.2536, allocations: 342.9 kB / 441.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.2536, allocations: 85.64 kB / 442 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2536, allocations: 0 / 442 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2537, allocations: 4.062 kB / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.2537, allocations: 0 / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2537, allocations: 0 / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.122e-05/0.2538, allocations: 27.7 kB / 442 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.2538, allocations: 8 kB / 442 MB, free: 7.398 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.0001438/0.2539, allocations: 231.4 kB / 442.2 MB, free: 7.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.254, allocations: 31.64 kB / 442.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.683e-05/0.254, allocations: 18.66 kB / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.254, allocations: 0 / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.254, allocations: 4 kB / 442.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.254, allocations: 3.984 kB / 442.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.2541, allocations: 245.2 kB / 442.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2541, allocations: 0 / 442.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.2542, allocations: 0 / 442.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2542, allocations: 0 / 442.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2542, allocations: 8 kB / 442.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.2542, allocations: 3.938 kB / 442.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2542, allocations: 3.984 kB / 442.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006764/0.2549, allocations: 0.9237 MB / 443.5 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.2549, allocations: 96.8 kB / 443.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.2549, allocations: 8 kB / 443.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.47e-05/0.255, allocations: 4 kB / 443.6 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.255, allocations: 8 kB / 443.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.2551, allocations: 11.98 kB / 443.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.001e-05/0.2551, allocations: 123.2 kB / 443.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2551, allocations: 3.938 kB / 443.7 MB, free: 5.578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008055/0.2559, allocations: 355.9 kB / 444.1 MB, free: 5.23 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.001572/0.2575, allocations: 1.721 MB / 445.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008987/0.2584, allocations: 1.597 MB / 447.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2584, allocations: 0 / 447.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006436/0.2591, allocations: 1.378 MB / 448.8 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.2593, allocations: 12.52 kB / 448.8 MB, free: 476 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.263, allocations: 3.718 MB / 452.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2633, allocations: 0.7558 MB / 453.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.409e-05/0.2633, allocations: 0 / 453.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.2634, allocations: 55.39 kB / 453.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2634, allocations: 0 / 453.3 MB, free: 11.82 MB / 334.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].