Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.00166/0.00166, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001863/0.001863, allocations: 189.4 kB / 18 MB, free: 5.102 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.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1842/0.1842, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3442, allocations: 58.07 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003186/0.3474, allocations: 2.095 MB / 0.5057 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.3499, allocations: 2.032 MB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.774e-05/0.35, allocations: 1.125 kB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3501, allocations: 13.64 kB / 0.5077 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.631e-05/0.3502, allocations: 33.28 kB / 0.5077 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002131/0.3523, allocations: 0.8313 MB / 0.5085 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.3525, allocations: 72.89 kB / 0.5086 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.3525, allocations: 5.547 kB / 0.5086 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.985e-05/0.3526, allocations: 43.58 kB / 0.5086 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.3527, allocations: 33.61 kB / 0.5087 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.3527, allocations: 5.031 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002015/0.3548, allocations: 1.404 MB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.3548, allocations: 21.14 kB / 0.5101 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.3549, allocations: 29.39 kB / 0.5101 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001855/0.3567, allocations: 1.331 MB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3567, allocations: 0.5625 kB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3567, allocations: 0.9688 kB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.3568, allocations: 0 / 0.5114 GB, free: 3.594 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006235/0.3574, allocations: 0.5272 MB / 0.5119 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3574, allocations: 17.42 kB / 0.5119 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.539e-05/0.3575, allocations: 35.81 kB / 0.512 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.3575, allocations: 8.047 kB / 0.512 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.3577, allocations: 195.9 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.3577, allocations: 1.125 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.3577, allocations: 1.062 kB / 0.5122 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.3579, allocations: 66.38 kB / 0.5122 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.3579, allocations: 0 / 0.5122 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3579, allocations: 0 / 0.5122 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3579, allocations: 1.062 kB / 0.5122 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.865e-05/0.358, allocations: 42.77 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.3581, allocations: 174.8 kB / 0.5124 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.345e-05/0.3582, allocations: 57.83 kB / 0.5125 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.23e-05/0.3583, allocations: 47.42 kB / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.3583, allocations: 0 / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.3583, allocations: 32.69 kB / 0.5126 GB, free: 2.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.3583, allocations: 4 kB / 0.5126 GB, free: 2.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003275/0.3587, allocations: 201.7 kB / 0.5128 GB, free: 2.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.3587, allocations: 87.59 kB / 0.5128 GB, free: 2.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3588, allocations: 135.4 kB / 0.513 GB, free: 2.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.3588, allocations: 26.83 kB / 0.513 GB, free: 2.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.041e-05/0.3589, allocations: 88.14 kB / 0.5131 GB, free: 2.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.3589, allocations: 37.06 kB / 0.5131 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.359, allocations: 23.77 kB / 0.5131 GB, free: 2.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.359, allocations: 328.6 kB / 0.5135 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.376e-05/0.3591, allocations: 31.56 kB / 0.5135 GB, free: 1.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.987e-05/0.3591, allocations: 31.94 kB / 0.5135 GB, free: 1.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.3593, allocations: 158.1 kB / 0.5137 GB, free: 1.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3593, allocations: 4 kB / 0.5137 GB, free: 1.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001786/0.3595, allocations: 165.9 kB / 0.5138 GB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.745e-05/0.3596, allocations: 50.03 kB / 0.5139 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3596, allocations: 3.938 kB / 0.5139 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3596, allocations: 1.875 kB / 0.5139 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.3596, allocations: 0 / 0.5139 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.3596, allocations: 4.625 kB / 0.5139 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.775e-05/0.3597, allocations: 7.469 kB / 0.5139 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.3597, allocations: 3.953 kB / 0.5139 GB, free: 1.461 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.000105/0.3598, allocations: 161.9 kB / 0.5141 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3598, allocations: 13.33 kB / 0.5141 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.641e-05/0.3598, allocations: 9.531 kB / 0.5141 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3598, allocations: 0 / 0.5141 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3599, allocations: 0 / 0.5141 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.3599, allocations: 5.766 kB / 0.5141 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.36, allocations: 190.7 kB / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.36, allocations: 0.6562 kB / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.36, allocations: 1.438 kB / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.36, allocations: 0 / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.36, allocations: 4.5 kB / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.36, allocations: 0.7031 kB / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.36, allocations: 0 / 0.5143 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.3604, allocations: 297.1 kB / 0.5146 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.3604, allocations: 88.53 kB / 0.5146 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.3604, allocations: 3.578 kB / 0.5146 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.756e-05/0.3605, allocations: 2.688 kB / 0.5146 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.3605, allocations: 1.984 kB / 0.5146 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3605, allocations: 8.375 kB / 0.5147 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.85e-05/0.3606, allocations: 105.9 kB / 0.5148 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3606, allocations: 0 / 0.5148 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001079/0.3617, allocations: 326.4 kB / 0.5151 GB, free: 0.7109 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.001454/0.3631, allocations: 1.086 MB / 0.5161 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004791/0.3636, allocations: 294.8 kB / 0.5164 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.3636, allocations: 0.5312 kB / 0.5164 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.3639, allocations: 229.9 kB / 0.5166 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.3642, allocations: 16.25 kB / 0.5166 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.3666, allocations: 1.951 MB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.3669, allocations: 0.7028 MB / 0.5192 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.265e-05/0.367, allocations: 1.156 kB / 0.5192 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.367, allocations: 23.59 kB / 0.5193 GB, free: 13.64 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.367, allocations: 1.281 kB / 0.5193 GB, free: 13.64 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].