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.001235/0.001235, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.001211/0.001211, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1881/0.1881, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3911, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002934/0.3941, allocations: 2.103 MB / 0.5057 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.3966, allocations: 2.039 MB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.231e-05/0.3967, allocations: 1 kB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.3969, allocations: 11.11 kB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.397e-05/0.397, allocations: 32.62 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002935/0.4, allocations: 0.8337 MB / 0.5085 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.4002, allocations: 77.7 kB / 0.5086 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.145e-05/0.4002, allocations: 3.344 kB / 0.5086 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.585e-05/0.4003, allocations: 36.55 kB / 0.5086 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.97e-05/0.4004, allocations: 48.28 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.4005, allocations: 2.281 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002631/0.4031, allocations: 1.404 MB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.4032, allocations: 30 kB / 0.5101 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.446e-05/0.4032, allocations: 37.39 kB / 0.5101 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00249/0.4057, allocations: 1.359 MB / 0.5115 GB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4058, allocations: 0 / 0.5115 GB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4058, allocations: 0 / 0.5115 GB, free: 3.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.4058, allocations: 0 / 0.5115 GB, free: 3.574 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.0007552/0.4065, allocations: 0.5633 MB / 0.512 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4066, allocations: 13.23 kB / 0.512 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.223e-05/0.4066, allocations: 45.55 kB / 0.5121 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.4067, allocations: 14.45 kB / 0.5121 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.4069, allocations: 208.1 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.4069, allocations: 0 / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.4069, allocations: 1.156 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.4071, allocations: 98.58 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.4071, allocations: 0 / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.4071, allocations: 1.875 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4071, allocations: 0 / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.731e-05/0.4072, allocations: 60.69 kB / 0.5124 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.4074, allocations: 196.2 kB / 0.5126 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.4075, allocations: 101.5 kB / 0.5127 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.4077, allocations: 91.41 kB / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.185e-06/0.4077, allocations: 0 / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.4077, allocations: 32.81 kB / 0.5128 GB, free: 2.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 9.22e-07/0.4077, allocations: 0 / 0.5128 GB, free: 2.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.000526/0.4082, allocations: 314 kB / 0.5131 GB, free: 2.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.4083, allocations: 98.48 kB / 0.5132 GB, free: 2.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.4084, allocations: 154.2 kB / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.4084, allocations: 26.45 kB / 0.5134 GB, free: 2.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.456e-05/0.4085, allocations: 103.2 kB / 0.5135 GB, free: 1.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.693e-05/0.4086, allocations: 84.41 kB / 0.5136 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.4086, allocations: 27.7 kB / 0.5136 GB, free: 1.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.277e-05/0.4087, allocations: 333 kB / 0.5139 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.326e-05/0.4088, allocations: 61.67 kB / 0.514 GB, free: 1.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.547e-05/0.4089, allocations: 60.47 kB / 0.514 GB, free: 1.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.4091, allocations: 255.1 kB / 0.5143 GB, free: 1.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4092, allocations: 0.8125 kB / 0.5143 GB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002796/0.4094, allocations: 235.5 kB / 0.5145 GB, free: 1.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/0.4095, allocations: 66.83 kB / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4095, allocations: 0.8906 kB / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4095, allocations: 1.5 kB / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.4096, allocations: 0 / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.4096, allocations: 3.938 kB / 0.5146 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.214e-05/0.4096, allocations: 14.61 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.4097, allocations: 10.03 kB / 0.5146 GB, free: 1.242 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.0001508/0.4098, allocations: 195 kB / 0.5148 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.4099, allocations: 19.69 kB / 0.5148 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.764e-05/0.4099, allocations: 14.47 kB / 0.5148 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.4099, allocations: 1.531 kB / 0.5148 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4099, allocations: 0 / 0.5148 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.4099, allocations: 0.7031 kB / 0.5148 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.41, allocations: 212.5 kB / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.41, allocations: 0.6562 kB / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.41, allocations: 4.812 kB / 0.515 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.4101, allocations: 4 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.4101, allocations: 5.984 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4101, allocations: 1.344 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4101, allocations: 0 / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007437/0.4108, allocations: 0.5155 MB / 0.5155 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.4109, allocations: 93.52 kB / 0.5156 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.4109, allocations: 5.156 kB / 0.5156 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.429e-05/0.411, allocations: 7.656 kB / 0.5156 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.411, allocations: 11.67 kB / 0.5157 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.411, allocations: 6 kB / 0.5157 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.145e-05/0.4111, allocations: 117.1 kB / 0.5158 GB, free: 480 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4111, allocations: 4.656 kB / 0.5158 GB, free: 476 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001422/0.4126, allocations: 334.8 kB / 0.5161 GB, free: 436 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.002265/0.4148, allocations: 1.312 MB / 0.5174 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.4159, allocations: 0.7117 MB / 0.5181 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4159, allocations: 3.938 kB / 0.5181 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005899/0.4165, allocations: 0.5732 MB / 0.5186 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.4168, allocations: 12.59 kB / 0.5186 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.4203, allocations: 2.673 MB / 0.5213 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.4206, allocations: 0.7253 MB / 0.522 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.526e-05/0.4206, allocations: 0 / 0.522 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.4207, allocations: 32.34 kB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4207, allocations: 1.5 kB / 0.522 GB, free: 12.75 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].