Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.0007956/0.0007956, allocations: 91.02 kB / 16.31 MB, free: 5.66 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.0009386/0.0009387, allocations: 179.3 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.3 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3659/0.3659, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003351, allocations: 11.98 kB / 400.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3631, allocations: 59.16 MB / 459.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002986/0.3661, allocations: 1.823 MB / 461.2 MB, free: 28.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.368, allocations: 0.9909 MB / 462.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.782e-05/0.368, allocations: 0 / 462.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.3682, allocations: 15.88 kB / 462.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.3683, allocations: 56.34 kB / 462.2 MB, free: 28.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007275/0.3691, allocations: 207.6 kB / 462.4 MB, free: 28.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.3694, allocations: 204.3 kB / 462.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.425e-05/0.3694, allocations: 3.688 kB / 462.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.3696, allocations: 54.59 kB / 462.7 MB, free: 28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.3697, allocations: 77.86 kB / 462.7 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.3697, allocations: 1.844 kB / 462.7 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006233/0.3704, allocations: 315.3 kB / 463.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.3704, allocations: 35.61 kB / 463.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.3705, allocations: 44.61 kB / 463.1 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006325/0.3711, allocations: 374.2 kB / 463.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3711, allocations: 0 / 463.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3712, allocations: 5.094 kB / 463.5 MB, free: 27.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3712, allocations: 0 / 463.5 MB, free: 27.8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004328/0.3716, allocations: 455.5 kB / 464 MB, free: 27.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3717, allocations: 8.938 kB / 464 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.934e-05/0.3717, allocations: 67.67 kB / 464 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.3718, allocations: 14.47 kB / 464 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.372, allocations: 199.7 kB / 464.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.372, allocations: 7.094 kB / 464.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.372, allocations: 17.09 kB / 464.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.3723, allocations: 131.7 kB / 464.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3723, allocations: 1.062 kB / 464.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.3723, allocations: 5.719 kB / 464.4 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3724, allocations: 1.188 kB / 464.4 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.3725, allocations: 85.28 kB / 464.5 MB, free: 26.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004249/0.3729, allocations: 353.3 kB / 464.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.3731, allocations: 129.6 kB / 464.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.3732, allocations: 119.5 kB / 465.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-06/0.3732, allocations: 3.938 kB / 465.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3733, allocations: 32.33 kB / 465.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.012e-06/0.3733, allocations: 0 / 465.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000522/0.3738, allocations: 289 kB / 465.4 MB, free: 26.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.3739, allocations: 95.53 kB / 465.5 MB, free: 26.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.374, allocations: 133.3 kB / 465.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.374, allocations: 26.8 kB / 465.6 MB, free: 26.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.374, allocations: 109.8 kB / 465.7 MB, free: 26.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/0.3741, allocations: 60.48 kB / 465.8 MB, free: 26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-06/0.3741, allocations: 1.156 kB / 465.8 MB, free: 26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.3742, allocations: 327.3 kB / 466.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.3744, allocations: 56.97 kB / 466.2 MB, free: 25.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-05/0.3744, allocations: 67.42 kB / 466.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.3746, allocations: 106.1 kB / 466.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3746, allocations: 1 kB / 466.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002823/0.3749, allocations: 220.5 kB / 466.6 MB, free: 25.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.461e-05/0.375, allocations: 56.56 kB / 466.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.375, allocations: 0.9844 kB / 466.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.375, allocations: 1.656 kB / 466.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.375, allocations: 0 / 466.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.375, allocations: 0 / 466.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.885e-05/0.3751, allocations: 13.47 kB / 466.6 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.3751, allocations: 18.2 kB / 466.7 MB, free: 25.45 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.3753, allocations: 185.2 kB / 466.8 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.3753, allocations: 12.66 kB / 466.8 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.439e-05/0.3753, allocations: 13.58 kB / 466.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3753, allocations: 0.7969 kB / 466.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3753, allocations: 1.438 kB / 466.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3753, allocations: 0 / 466.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.3756, allocations: 221.3 kB / 467.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3756, allocations: 1.844 kB / 467.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.503e-06/0.3756, allocations: 8.453 kB / 467.1 MB, free: 25.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3756, allocations: 0 / 467.1 MB, free: 25.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.3756, allocations: 9.297 kB / 467.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3756, allocations: 0.6094 kB / 467.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3756, allocations: 0.6562 kB / 467.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005202/0.3762, allocations: 452.8 kB / 467.5 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.3762, allocations: 84.88 kB / 467.6 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/0.3762, allocations: 4.219 kB / 467.6 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.795e-05/0.3763, allocations: 7.906 kB / 467.6 MB, free: 24.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.822e-05/0.3763, allocations: 11.47 kB / 467.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.3764, allocations: 6.281 kB / 467.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.893e-05/0.3764, allocations: 105.5 kB / 467.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3764, allocations: 0 / 467.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006377/0.3771, allocations: 138.7 kB / 467.9 MB, free: 24.62 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/0.3784, allocations: 1.223 MB / 469.1 MB, free: 23.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006088/0.379, allocations: 0.5664 MB / 469.7 MB, free: 23.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.379, allocations: 5.156 kB / 469.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.3794, allocations: 466.4 kB / 470.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.3797, allocations: 22.73 kB / 470.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.3817, allocations: 1.321 MB / 471.5 MB, free: 22.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.3819, allocations: 0.7339 MB / 472.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.168e-05/0.3819, allocations: 2.031 kB / 472.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.105e-05/0.382, allocations: 32.48 kB / 472.2 MB, free: 21.81 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.382, allocations: 0 / 472.2 MB, free: 21.81 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].