Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_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.00137/0.00137, allocations: 108.3 kB / 17.06 MB, free: 5.961 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.001301/0.001301, allocations: 200 kB / 18.01 MB, free: 5.039 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.428/1.428, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1814/0.1814, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 59.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3618, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003341/0.3652, allocations: 2.107 MB / 0.5057 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.368, allocations: 2.036 MB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.935e-05/0.368, allocations: 1.062 kB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.3682, allocations: 19.05 kB / 0.5077 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.361e-05/0.3683, allocations: 28.7 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002415/0.3707, allocations: 0.8233 MB / 0.5085 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.3709, allocations: 77.78 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.436e-05/0.371, allocations: 9.016 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.947e-05/0.3711, allocations: 36.25 kB / 0.5087 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.3712, allocations: 49.16 kB / 0.5087 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.3712, allocations: 2.375 kB / 0.5087 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002705/0.3739, allocations: 1.404 MB / 0.5101 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.358e-05/0.374, allocations: 26.47 kB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.777e-05/0.3741, allocations: 39.95 kB / 0.5101 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00238/0.3765, allocations: 1.362 MB / 0.5115 GB, free: 3.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3765, allocations: 0 / 0.5115 GB, free: 3.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3765, allocations: 0 / 0.5115 GB, free: 3.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3765, allocations: 0 / 0.5115 GB, free: 3.578 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008692/0.3774, allocations: 0.5778 MB / 0.512 GB, free: 3.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3775, allocations: 8.594 kB / 0.512 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.6e-05/0.3775, allocations: 41.67 kB / 0.5121 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.281e-05/0.3776, allocations: 14.25 kB / 0.5121 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.3778, allocations: 205.1 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3778, allocations: 0 / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.3778, allocations: 2.078 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.378, allocations: 96.94 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.378, allocations: 2.094 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.378, allocations: 0 / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3781, allocations: 4 kB / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001025/0.3782, allocations: 63.91 kB / 0.5124 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.3783, allocations: 192.3 kB / 0.5126 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.3785, allocations: 104.2 kB / 0.5127 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.3786, allocations: 87.53 kB / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.3786, allocations: 0 / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.3786, allocations: 31.72 kB / 0.5128 GB, free: 2.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.203e-06/0.3786, allocations: 4.938 kB / 0.5128 GB, free: 2.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006037/0.3792, allocations: 321.2 kB / 0.5132 GB, free: 2.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.3793, allocations: 94.69 kB / 0.5132 GB, free: 2.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.3794, allocations: 151.2 kB / 0.5134 GB, free: 2.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.3795, allocations: 30.92 kB / 0.5134 GB, free: 2.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.693e-05/0.3795, allocations: 107 kB / 0.5135 GB, free: 1.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.782e-05/0.3796, allocations: 79.33 kB / 0.5136 GB, free: 1.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.3797, allocations: 29.53 kB / 0.5136 GB, free: 1.836 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.987e-05/0.3798, allocations: 336.1 kB / 0.5139 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.335e-05/0.3798, allocations: 61.62 kB / 0.514 GB, free: 1.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.427e-05/0.3799, allocations: 60.7 kB / 0.5141 GB, free: 1.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.3803, allocations: 250.8 kB / 0.5143 GB, free: 1.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3803, allocations: 0 / 0.5143 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003031/0.3806, allocations: 239.6 kB / 0.5145 GB, free: 1.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/0.3806, allocations: 67.59 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3807, allocations: 0 / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3807, allocations: 0.6094 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-06/0.3807, allocations: 9.625 kB / 0.5146 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3807, allocations: 4.547 kB / 0.5146 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.267e-05/0.3808, allocations: 12.64 kB / 0.5146 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.3808, allocations: 6.719 kB / 0.5146 GB, free: 1.227 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 0.000155/0.381, allocations: 197.8 kB / 0.5148 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.381, allocations: 15.22 kB / 0.5148 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.381, allocations: 14.08 kB / 0.5148 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.381, allocations: 4.703 kB / 0.5148 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3811, allocations: 1.125 kB / 0.5148 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3811, allocations: 4 kB / 0.5149 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3812, allocations: 210.2 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3812, allocations: 1.094 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.503e-06/0.3812, allocations: 0.7969 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3812, allocations: 1.094 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3813, allocations: 5.391 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3813, allocations: 0 / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3813, allocations: 1.125 kB / 0.5151 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000787/0.3821, allocations: 0.5226 MB / 0.5156 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.3821, allocations: 93.08 kB / 0.5157 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.3822, allocations: 8.219 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.382e-05/0.3822, allocations: 4.344 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.3822, allocations: 7.422 kB / 0.5157 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.3823, allocations: 6.188 kB / 0.5157 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3824, allocations: 113.6 kB / 0.5158 GB, free: 468 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3824, allocations: 3.938 kB / 0.5158 GB, free: 464 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001563/0.384, allocations: 341.2 kB / 0.5161 GB, free: 416 kB / 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.002045/0.386, allocations: 1.317 MB / 0.5174 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.3869, allocations: 0.7156 MB / 0.5181 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.3869, allocations: 4.094 kB / 0.5181 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006547/0.3876, allocations: 0.5686 MB / 0.5187 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.3879, allocations: 12.78 kB / 0.5187 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.3912, allocations: 2.685 MB / 0.5213 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.3916, allocations: 0.7258 MB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.717e-05/0.3916, allocations: 0.6562 kB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.58e-05/0.3917, allocations: 32.42 kB / 0.522 GB, free: 12.72 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3917, allocations: 4.031 kB / 0.522 GB, free: 12.71 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].