Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001302/0.001302, allocations: 107.8 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.001266/0.001266, 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.452/1.452, 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.1974/0.1974, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 63.91 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4049, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004699/0.4097, allocations: 2.102 MB / 0.5057 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.4138, allocations: 2.039 MB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.414, allocations: 1.438 kB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.4143, allocations: 10.61 kB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.4145, allocations: 39.64 kB / 0.5077 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002813/0.4173, allocations: 0.8249 MB / 0.5085 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.4175, allocations: 71.66 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.25e-05/0.4175, allocations: 6.547 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.267e-05/0.4176, allocations: 37.44 kB / 0.5086 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.476e-05/0.4177, allocations: 41.11 kB / 0.5087 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.4177, allocations: 1.438 kB / 0.5087 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002475/0.4202, allocations: 1.411 MB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.4203, allocations: 12.3 kB / 0.5101 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.4203, allocations: 23.78 kB / 0.5101 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.4223, allocations: 1.315 MB / 0.5114 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4223, allocations: 1.25 kB / 0.5114 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4223, allocations: 0 / 0.5114 GB, free: 3.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.4223, allocations: 0 / 0.5114 GB, free: 3.609 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005972/0.4229, allocations: 0.5169 MB / 0.5119 GB, free: 3.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.423, allocations: 9.812 kB / 0.5119 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.853e-05/0.423, allocations: 33.14 kB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.315e-05/0.423, allocations: 13.3 kB / 0.5119 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.4232, allocations: 185.7 kB / 0.5121 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.4232, allocations: 1.219 kB / 0.5121 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.4232, allocations: 1.219 kB / 0.5121 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.4233, allocations: 55.2 kB / 0.5122 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.4234, allocations: 0 / 0.5122 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.4234, allocations: 9 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4234, allocations: 0 / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.472e-05/0.4234, allocations: 19.98 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001154/0.4236, allocations: 171.1 kB / 0.5124 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.588e-05/0.4236, allocations: 44.84 kB / 0.5124 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.519e-05/0.4237, allocations: 34.81 kB / 0.5124 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.4237, allocations: 3.797 kB / 0.5124 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.4237, allocations: 35.72 kB / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.4237, allocations: 0.9688 kB / 0.5125 GB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002722/0.424, allocations: 158.2 kB / 0.5126 GB, free: 2.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.4241, allocations: 89.89 kB / 0.5127 GB, free: 2.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.98e-05/0.4241, allocations: 125.3 kB / 0.5128 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.4242, allocations: 26.8 kB / 0.5129 GB, free: 2.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.854e-05/0.4242, allocations: 87.78 kB / 0.5129 GB, free: 2.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.4242, allocations: 29.75 kB / 0.513 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/0.4243, allocations: 17.17 kB / 0.513 GB, free: 2.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.264e-05/0.4243, allocations: 329 kB / 0.5133 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.005e-05/0.4244, allocations: 22.22 kB / 0.5133 GB, free: 1.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.312e-05/0.4244, allocations: 24.25 kB / 0.5133 GB, free: 1.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.4246, allocations: 129.2 kB / 0.5135 GB, free: 1.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4246, allocations: 0.7031 kB / 0.5135 GB, free: 1.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001452/0.4247, allocations: 125.5 kB / 0.5136 GB, free: 1.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.166e-05/0.4248, allocations: 45.14 kB / 0.5136 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.4248, allocations: 4 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.4248, allocations: 5.688 kB / 0.5136 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.4248, allocations: 0 / 0.5136 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4248, allocations: 1.438 kB / 0.5136 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.88e-05/0.4249, allocations: 1.594 kB / 0.5136 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.4249, allocations: 7 kB / 0.5136 GB, free: 1.539 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.555e-05/0.425, allocations: 153.4 kB / 0.5138 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.425, allocations: 8.281 kB / 0.5138 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.396e-05/0.425, allocations: 12.3 kB / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.425, allocations: 0 / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4251, allocations: 5.078 kB / 0.5138 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4251, allocations: 1.469 kB / 0.5138 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.717e-05/0.4251, allocations: 167.9 kB / 0.514 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4252, allocations: 5 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.432e-06/0.4252, allocations: 0.5156 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.4252, allocations: 0 / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.4252, allocations: 3.984 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4252, allocations: 3.938 kB / 0.514 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4252, allocations: 1.375 kB / 0.514 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.4254, allocations: 224.7 kB / 0.5142 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.4255, allocations: 84.47 kB / 0.5143 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.4255, allocations: 2.141 kB / 0.5143 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.281e-05/0.4255, allocations: 10.66 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.4255, allocations: 2.094 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.4256, allocations: 2.625 kB / 0.5143 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.514e-05/0.4256, allocations: 100.3 kB / 0.5144 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4256, allocations: 0 / 0.5144 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001148/0.4268, allocations: 320.1 kB / 0.5147 GB, free: 0.8125 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.001288/0.4281, allocations: 1.013 MB / 0.5157 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.4284, allocations: 205.7 kB / 0.5159 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4284, allocations: 4.094 kB / 0.5159 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.4286, allocations: 149.5 kB / 0.516 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.4289, allocations: 7.812 kB / 0.516 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.4314, allocations: 1.699 MB / 0.5177 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.4318, allocations: 0.6965 MB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.697e-05/0.4319, allocations: 1.156 kB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.4319, allocations: 19.73 kB / 0.5184 GB, free: 13.89 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4319, allocations: 4.031 kB / 0.5184 GB, free: 13.89 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].