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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001095/0.001095, allocations: 110.8 kB / 17.06 MB, free: 5.996 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.001133/0.001133, allocations: 200 kB / 18.01 MB, free: 5.074 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1794/0.1794, allocations: 38.03 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 75.86 kB / 457.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3108, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002923/0.3137, allocations: 2.103 MB / 0.5057 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002498/0.3162, allocations: 2.035 MB / 0.5077 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.404e-05/0.3163, allocations: 0 / 0.5077 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.3165, allocations: 11.61 kB / 0.5077 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.687e-05/0.3166, allocations: 33.17 kB / 0.5077 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002267/0.3189, allocations: 0.8384 MB / 0.5085 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.319, allocations: 76.34 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.3191, allocations: 6.766 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.591e-05/0.3192, allocations: 33.41 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.303e-05/0.3192, allocations: 44.08 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.3193, allocations: 2.375 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002057/0.3213, allocations: 1.407 MB / 0.5101 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.697e-05/0.3214, allocations: 7.875 kB / 0.5101 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.066e-05/0.3214, allocations: 27.86 kB / 0.5101 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001883/0.3233, allocations: 1.312 MB / 0.5114 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3233, allocations: 1.031 kB / 0.5114 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3233, allocations: 0 / 0.5114 GB, free: 3.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.3234, allocations: 0 / 0.5114 GB, free: 3.621 MB / 382.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.0005922/0.324, allocations: 0.5239 MB / 0.5119 GB, free: 3.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.324, allocations: 9.25 kB / 0.5119 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.989e-05/0.324, allocations: 33.98 kB / 0.5119 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.3241, allocations: 9.016 kB / 0.5119 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3242, allocations: 185.5 kB / 0.5121 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.3242, allocations: 1.156 kB / 0.5121 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.3242, allocations: 1.094 kB / 0.5121 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.3244, allocations: 59.5 kB / 0.5122 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3244, allocations: 0 / 0.5122 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3244, allocations: 4.609 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3244, allocations: 1.062 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.376e-05/0.3245, allocations: 19.52 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.3246, allocations: 171.1 kB / 0.5124 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.367e-05/0.3246, allocations: 44.42 kB / 0.5124 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.3247, allocations: 34.05 kB / 0.5124 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.697e-06/0.3247, allocations: 5.125 kB / 0.5124 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.3247, allocations: 43.25 kB / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.3247, allocations: 0.7188 kB / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002575/0.325, allocations: 151.7 kB / 0.5126 GB, free: 2.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.325, allocations: 83.42 kB / 0.5127 GB, free: 2.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.3251, allocations: 126.4 kB / 0.5128 GB, free: 2.242 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.3251, allocations: 26.92 kB / 0.5129 GB, free: 2.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/0.3252, allocations: 92.2 kB / 0.5129 GB, free: 2.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.3252, allocations: 33.41 kB / 0.513 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.3253, allocations: 21.42 kB / 0.513 GB, free: 2.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.3253, allocations: 324.2 kB / 0.5133 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.379e-05/0.3254, allocations: 23.45 kB / 0.5133 GB, free: 1.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.33e-05/0.3254, allocations: 19.25 kB / 0.5133 GB, free: 1.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.3255, allocations: 129.6 kB / 0.5135 GB, free: 1.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3256, allocations: 0 / 0.5135 GB, free: 1.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001446/0.3257, allocations: 125.4 kB / 0.5136 GB, free: 1.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.3257, allocations: 45.44 kB / 0.5136 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3258, allocations: 3.938 kB / 0.5136 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3258, allocations: 6.172 kB / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3258, allocations: 0 / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3258, allocations: 0 / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.841e-05/0.3258, allocations: 3.281 kB / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.3259, allocations: 6.906 kB / 0.5137 GB, free: 1.551 MB / 382.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.061e-05/0.3259, allocations: 152.3 kB / 0.5138 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.326, allocations: 9.422 kB / 0.5138 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.523e-05/0.326, allocations: 10.98 kB / 0.5138 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.326, allocations: 1 kB / 0.5138 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.326, allocations: 4 kB / 0.5138 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.326, allocations: 1.156 kB / 0.5138 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.778e-05/0.3261, allocations: 169.5 kB / 0.514 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3261, allocations: 0 / 0.514 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.3261, allocations: 4.828 kB / 0.514 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3261, allocations: 1.125 kB / 0.514 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.3261, allocations: 2.156 kB / 0.514 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3262, allocations: 1.906 kB / 0.514 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3262, allocations: 0 / 0.514 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.3264, allocations: 224.8 kB / 0.5142 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.449e-05/0.3264, allocations: 88.36 kB / 0.5143 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.3265, allocations: 2.531 kB / 0.5143 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.477e-05/0.3265, allocations: 2 kB / 0.5143 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.3265, allocations: 2.391 kB / 0.5143 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.3265, allocations: 3.438 kB / 0.5143 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.3266, allocations: 98.41 kB / 0.5144 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3266, allocations: 1.062 kB / 0.5144 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001185/0.3278, allocations: 320.4 kB / 0.5147 GB, free: 0.832 MB / 382.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.001348/0.3291, allocations: 1.03 MB / 0.5157 GB, free: 104 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003042/0.3295, allocations: 200 kB / 0.5159 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.248e-05/0.3295, allocations: 0.9219 kB / 0.5159 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.3297, allocations: 154 kB / 0.516 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.3299, allocations: 8.562 kB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.3318, allocations: 1.696 MB / 0.5177 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.3321, allocations: 0.6938 MB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.576e-05/0.3321, allocations: 2.109 kB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.189e-05/0.3321, allocations: 17.97 kB / 0.5184 GB, free: 13.9 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3321, allocations: 0 / 0.5184 GB, free: 13.9 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].