Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_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.001563/0.001563, allocations: 115.2 kB / 17.06 MB, free: 6 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.001683/0.001682, allocations: 195 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.378/1.378, 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/package.mo): time 0.2006/0.2006, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.001931, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4132, allocations: 58.04 MB / 0.5036 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003707/0.417, allocations: 2.102 MB / 0.5057 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.42, allocations: 2.04 MB / 0.5077 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.047e-05/0.4201, allocations: 0 / 0.5077 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.4203, allocations: 10.97 kB / 0.5077 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.861e-05/0.4205, allocations: 32.53 kB / 0.5077 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.4236, allocations: 0.8327 MB / 0.5085 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.4238, allocations: 75.19 kB / 0.5086 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.699e-05/0.4239, allocations: 5.656 kB / 0.5086 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.704e-05/0.424, allocations: 31.88 kB / 0.5086 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.19e-05/0.4241, allocations: 41.05 kB / 0.5087 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.4241, allocations: 6.031 kB / 0.5087 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.4267, allocations: 1.403 MB / 0.51 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.4268, allocations: 17.94 kB / 0.5101 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.053e-05/0.4268, allocations: 29.78 kB / 0.5101 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002527/0.4293, allocations: 1.332 MB / 0.5114 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4294, allocations: 0 / 0.5114 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4294, allocations: 0 / 0.5114 GB, free: 3.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.4294, allocations: 0 / 0.5114 GB, free: 3.449 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.0008366/0.4302, allocations: 0.5347 MB / 0.5119 GB, free: 2.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4303, allocations: 13.83 kB / 0.5119 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.599e-05/0.4303, allocations: 34.08 kB / 0.512 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.4304, allocations: 12.59 kB / 0.512 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.4305, allocations: 192.1 kB / 0.5121 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.4305, allocations: 1.5 kB / 0.5121 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.4306, allocations: 1.344 kB / 0.5122 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.4307, allocations: 68.5 kB / 0.5122 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4307, allocations: 0 / 0.5122 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.4308, allocations: 1.219 kB / 0.5122 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.4308, allocations: 5.641 kB / 0.5122 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.302e-05/0.4308, allocations: 32.06 kB / 0.5123 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.431, allocations: 179 kB / 0.5124 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.211e-05/0.4311, allocations: 57.75 kB / 0.5125 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.73e-05/0.4311, allocations: 46.91 kB / 0.5125 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.4312, allocations: 0 / 0.5125 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.4312, allocations: 44.05 kB / 0.5126 GB, free: 2.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.4312, allocations: 1.031 kB / 0.5126 GB, free: 2.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003258/0.4315, allocations: 203.2 kB / 0.5128 GB, free: 2.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.4316, allocations: 87.02 kB / 0.5128 GB, free: 2.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.017e-05/0.4317, allocations: 134.4 kB / 0.513 GB, free: 2.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.4317, allocations: 26.95 kB / 0.513 GB, free: 1.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.4317, allocations: 92.73 kB / 0.5131 GB, free: 1.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.4318, allocations: 32.34 kB / 0.5131 GB, free: 1.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.4318, allocations: 24.06 kB / 0.5131 GB, free: 1.859 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.914e-05/0.4319, allocations: 328.1 kB / 0.5135 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.295e-05/0.4319, allocations: 32.11 kB / 0.5135 GB, free: 1.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.89e-05/0.432, allocations: 31.33 kB / 0.5135 GB, free: 1.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.4321, allocations: 161.8 kB / 0.5137 GB, free: 1.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4321, allocations: 0 / 0.5137 GB, free: 1.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001788/0.4323, allocations: 164.3 kB / 0.5138 GB, free: 1.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.4324, allocations: 50.27 kB / 0.5139 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4324, allocations: 0 / 0.5139 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.4324, allocations: 1.5 kB / 0.5139 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.4324, allocations: 4.062 kB / 0.5139 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.4324, allocations: 1.094 kB / 0.5139 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.705e-05/0.4325, allocations: 6.953 kB / 0.5139 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.4325, allocations: 4.875 kB / 0.5139 GB, free: 1.312 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 9.467e-05/0.4326, allocations: 164.7 kB / 0.514 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.947e-05/0.4326, allocations: 10.45 kB / 0.5141 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.611e-05/0.4327, allocations: 8.469 kB / 0.5141 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.4327, allocations: 0 / 0.5141 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4327, allocations: 2.109 kB / 0.5141 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.4327, allocations: 7.938 kB / 0.5141 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.019e-05/0.4328, allocations: 187.7 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4328, allocations: 0 / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.483e-06/0.4328, allocations: 1.156 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4328, allocations: 0.6094 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.4328, allocations: 3.766 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4328, allocations: 1.094 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4328, allocations: 0 / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.4332, allocations: 293 kB / 0.5145 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.4332, allocations: 84.34 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.4332, allocations: 2.953 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.946e-05/0.4333, allocations: 2.562 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.4333, allocations: 2.906 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.4333, allocations: 11.11 kB / 0.5146 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.121e-05/0.4334, allocations: 102.9 kB / 0.5147 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4334, allocations: 3.938 kB / 0.5147 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001358/0.4347, allocations: 327.1 kB / 0.5151 GB, free: 0.5664 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.001811/0.4366, allocations: 1.099 MB / 0.5161 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005583/0.4371, allocations: 293.2 kB / 0.5164 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4372, allocations: 4.75 kB / 0.5164 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.4374, allocations: 226.7 kB / 0.5166 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.4377, allocations: 9.891 kB / 0.5166 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.4401, allocations: 1.944 MB / 0.5185 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.4404, allocations: 0.7029 MB / 0.5192 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.418e-05/0.4404, allocations: 1.953 kB / 0.5192 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.4405, allocations: 22.83 kB / 0.5192 GB, free: 13.49 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4405, allocations: 5.312 kB / 0.5192 GB, free: 13.48 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].