Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.0009387/0.0009387, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.001183/0.001183, allocations: 184.5 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.28/1.28, allocations: 205.4 MB / 223.7 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.1648/0.1648, 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.0006075/0.0006074, allocations: 23.98 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2267, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.001823/0.2285, allocations: 1.844 MB / 435.4 MB, free: 16.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.2308, allocations: 2.172 MB / 437.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.2308, allocations: 4 kB / 437.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.2309, allocations: 7.922 kB / 437.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.907e-05/0.231, allocations: 31.83 kB / 437.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.2323, allocations: 0.6851 MB / 438.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.2325, allocations: 179.5 kB / 438.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.628e-05/0.2325, allocations: 4 kB / 438.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.015e-05/0.2326, allocations: 35.84 kB / 438.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.954e-05/0.2327, allocations: 67.69 kB / 438.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.2327, allocations: 0 / 438.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.2339, allocations: 1.22 MB / 439.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.2339, allocations: 31.89 kB / 439.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.311e-05/0.234, allocations: 61.39 kB / 439.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009661/0.235, allocations: 1.285 MB / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.235, allocations: 0 / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.235, allocations: 0 / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.235, 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000477/0.2355, allocations: 0.5279 MB / 441.7 MB, free: 10.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2355, allocations: 8.031 kB / 441.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.218e-05/0.2356, allocations: 70.38 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.2356, allocations: 16.75 kB / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.2358, allocations: 200.1 kB / 442 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.2358, allocations: 11.94 kB / 442 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.2358, allocations: 4 kB / 442.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.236, allocations: 134.2 kB / 442.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.236, allocations: 4 kB / 442.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.2361, allocations: 0 / 442.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2361, allocations: 0 / 442.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.321e-05/0.2362, allocations: 72.19 kB / 442.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003135/0.2365, allocations: 364.9 kB / 442.6 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.842e-05/0.2366, allocations: 78.48 kB / 442.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/0.2366, allocations: 60.8 kB / 442.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.2367, allocations: 0 / 442.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2367, allocations: 38.56 kB / 442.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 9.01e-07/0.2367, allocations: 0 / 442.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002854/0.237, allocations: 219.3 kB / 443 MB, free: 9.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.237, allocations: 89.09 kB / 443.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.07e-05/0.2371, allocations: 154.1 kB / 443.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.2371, allocations: 29.7 kB / 443.3 MB, free: 8.711 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.803e-05/0.2372, allocations: 111.9 kB / 443.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.2372, allocations: 47.3 kB / 443.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.2372, allocations: 21.75 kB / 443.4 MB, free: 8.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.604e-05/0.2373, allocations: 322.8 kB / 443.8 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.609e-05/0.2373, allocations: 39.91 kB / 443.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.958e-05/0.2374, allocations: 43.97 kB / 443.8 MB, free: 8.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.2375, allocations: 175.7 kB / 444 MB, free: 7.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2375, allocations: 0 / 444 MB, free: 7.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001537/0.2377, allocations: 183.1 kB / 444.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.2377, allocations: 53.67 kB / 444.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2377, allocations: 0 / 444.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.2378, allocations: 8 kB / 444.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.2378, allocations: 0 / 444.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.2378, allocations: 3.984 kB / 444.3 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.2378, allocations: 4 kB / 444.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.2379, allocations: 4 kB / 444.3 MB, free: 7.664 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 8.641e-05/0.2379, allocations: 183.3 kB / 444.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.238, allocations: 15.81 kB / 444.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.43e-05/0.238, allocations: 16.83 kB / 444.5 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.238, allocations: 0 / 444.5 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.238, allocations: 4 kB / 444.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.238, allocations: 3.938 kB / 444.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.2382, allocations: 205.5 kB / 444.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2382, allocations: 0 / 444.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.2382, allocations: 0 / 444.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.2382, allocations: 0 / 444.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.2382, allocations: 8 kB / 444.7 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2382, allocations: 0 / 444.7 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2382, allocations: 4 kB / 444.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.2385, allocations: 372.9 kB / 445.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.228e-05/0.2385, allocations: 92.86 kB / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2385, allocations: 0 / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.637e-05/0.2386, allocations: 4 kB / 445.2 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.2386, allocations: 4 kB / 445.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.2386, allocations: 7.984 kB / 445.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.598e-05/0.2387, allocations: 119 kB / 445.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2387, allocations: 0 / 445.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008008/0.2395, allocations: 335.9 kB / 445.6 MB, free: 6.211 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.001308/0.2408, allocations: 1.279 MB / 446.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.2411, allocations: 339.3 kB / 447.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2411, allocations: 0 / 447.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.2413, allocations: 259.2 kB / 447.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.2416, allocations: 16 kB / 447.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.2433, allocations: 2.378 MB / 449.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2434, allocations: 0.7278 MB / 450.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.491e-05/0.2435, allocations: 3.984 kB / 450.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.2435, allocations: 39.45 kB / 450.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2435, allocations: 4 kB / 450.6 MB, free: 1.016 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].