Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001096/0.001096, allocations: 106.6 kB / 17.06 MB, free: 6.102 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.001163/0.001163, allocations: 194.9 kB / 18 MB, free: 5.172 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.41/1.41, 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.1758/0.1758, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4059, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003437/0.4094, allocations: 2.103 MB / 0.5057 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.4123, allocations: 2.038 MB / 0.5077 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.949e-05/0.4123, allocations: 1.344 kB / 0.5077 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.4126, allocations: 17.81 kB / 0.5077 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.472e-05/0.4127, allocations: 34.02 kB / 0.5077 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002623/0.4153, allocations: 0.8285 MB / 0.5085 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.4155, allocations: 81.45 kB / 0.5086 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.044e-05/0.4155, allocations: 7.938 kB / 0.5086 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.736e-05/0.4157, allocations: 32.23 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.4158, allocations: 51.47 kB / 0.5087 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.4158, allocations: 2.844 kB / 0.5087 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003145/0.4189, allocations: 1.409 MB / 0.5101 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.4191, allocations: 43.36 kB / 0.5101 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.656e-05/0.4192, allocations: 46.78 kB / 0.5102 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.4219, allocations: 1.391 MB / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.422, allocations: 1.375 kB / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.422, allocations: 0 / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.422, allocations: 0 / 0.5115 GB, free: 3.523 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007817/0.4228, allocations: 0.6213 MB / 0.5121 GB, free: 2.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.4228, allocations: 14.66 kB / 0.5121 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.4229, allocations: 44.02 kB / 0.5122 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.503e-05/0.4229, allocations: 19.58 kB / 0.5122 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.4231, allocations: 216.5 kB / 0.5124 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.4231, allocations: 5.125 kB / 0.5124 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.4232, allocations: 1.156 kB / 0.5124 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.4234, allocations: 136.3 kB / 0.5126 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.4234, allocations: 0 / 0.5126 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.4234, allocations: 0.8906 kB / 0.5126 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.4235, allocations: 5.219 kB / 0.5126 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.4236, allocations: 102.9 kB / 0.5127 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.4238, allocations: 211.5 kB / 0.5129 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.4239, allocations: 158.8 kB / 0.513 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.4241, allocations: 147.5 kB / 0.5131 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.4241, allocations: 3.703 kB / 0.5132 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.4241, allocations: 32.33 kB / 0.5132 GB, free: 2.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.193e-06/0.4242, allocations: 4 kB / 0.5132 GB, free: 2.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.000823/0.425, allocations: 499.1 kB / 0.5137 GB, free: 2.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.4251, allocations: 108.8 kB / 0.5138 GB, free: 1.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.4252, allocations: 168 kB / 0.5139 GB, free: 1.816 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.4253, allocations: 26.8 kB / 0.514 GB, free: 1.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.4253, allocations: 104.3 kB / 0.5141 GB, free: 1.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.4255, allocations: 135.3 kB / 0.5142 GB, free: 1.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.4256, allocations: 38.3 kB / 0.5142 GB, free: 1.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4257, allocations: 342.3 kB / 0.5145 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.4258, allocations: 102 kB / 0.5146 GB, free: 1.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.426, allocations: 96 kB / 0.5147 GB, free: 1.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005935/0.4266, allocations: 383.5 kB / 0.5151 GB, free: 1.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4266, allocations: 0 / 0.5151 GB, free: 1.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000563/0.4272, allocations: 338.8 kB / 0.5154 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.4273, allocations: 85.53 kB / 0.5155 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4273, allocations: 1.344 kB / 0.5155 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.4273, allocations: 0 / 0.5155 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.4274, allocations: 0.5312 kB / 0.5155 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.4274, allocations: 5.453 kB / 0.5155 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.073e-05/0.4275, allocations: 19.78 kB / 0.5155 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.4275, allocations: 8.75 kB / 0.5155 GB, free: 0.8672 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.0002877/0.4278, allocations: 238.1 kB / 0.5158 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/0.4279, allocations: 26.89 kB / 0.5158 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.4279, allocations: 16.09 kB / 0.5158 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.4279, allocations: 1.156 kB / 0.5158 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4279, allocations: 0 / 0.5158 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4279, allocations: 0.7031 kB / 0.5158 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002537/0.4282, allocations: 249.3 kB / 0.516 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4282, allocations: 0 / 0.516 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-06/0.4282, allocations: 1.906 kB / 0.516 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4282, allocations: 0 / 0.516 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.4283, allocations: 7.625 kB / 0.5161 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4283, allocations: 5.094 kB / 0.5161 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4283, allocations: 0 / 0.5161 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.4296, allocations: 0.9114 MB / 0.5169 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.4297, allocations: 103.5 kB / 0.517 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/0.4297, allocations: 11.44 kB / 0.5171 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.264e-05/0.4298, allocations: 5.594 kB / 0.5171 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.4298, allocations: 7.984 kB / 0.5171 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4299, allocations: 9.391 kB / 0.5171 GB, free: 80 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.43, allocations: 130.4 kB / 0.5172 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.43, allocations: 0 / 0.5172 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001943/0.432, allocations: 363.3 kB / 0.5176 GB, free: 15.94 MB / 398.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.003259/0.4352, allocations: 1.732 MB / 0.5192 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.4373, allocations: 1.599 MB / 0.5208 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4373, allocations: 0 / 0.5208 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.4388, allocations: 1.377 MB / 0.5221 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.4392, allocations: 19.81 kB / 0.5222 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00499/0.4442, allocations: 3.678 MB / 0.5258 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.4446, allocations: 0.7525 MB / 0.5265 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.168e-05/0.4446, allocations: 1.844 kB / 0.5265 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.362e-05/0.4447, allocations: 45.16 kB / 0.5265 GB, free: 10.96 MB / 398.1 MB Notification: Performance of SimCode: time 1.744e-06/0.4448, allocations: 0 / 0.5265 GB, free: 10.96 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].