Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_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.001266/0.001267, allocations: 113.7 kB / 17.07 MB, free: 5.965 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.001258/0.001259, allocations: 193.3 kB / 18.01 MB, free: 5.051 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 67.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3412, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003101/0.3444, allocations: 2.101 MB / 0.5057 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.347, allocations: 2.035 MB / 0.5077 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.052e-05/0.3471, allocations: 5.594 kB / 0.5077 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.3473, allocations: 13.75 kB / 0.5077 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.805e-05/0.3474, allocations: 28.59 kB / 0.5077 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.3495, allocations: 0.8315 MB / 0.5085 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000137/0.3496, allocations: 81.81 kB / 0.5086 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.486e-05/0.3497, allocations: 7.031 kB / 0.5086 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.965e-05/0.3498, allocations: 32.8 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.156e-05/0.3498, allocations: 52.44 kB / 0.5087 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.3499, allocations: 6.656 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00219/0.3521, allocations: 1.403 MB / 0.5101 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/0.3521, allocations: 26.91 kB / 0.5101 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.894e-05/0.3522, allocations: 40.44 kB / 0.5101 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001935/0.3541, allocations: 1.355 MB / 0.5115 GB, free: 3.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3541, allocations: 0.75 kB / 0.5115 GB, free: 3.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3542, allocations: 0 / 0.5115 GB, free: 3.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3542, allocations: 5.125 kB / 0.5115 GB, free: 3.586 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.0006287/0.3548, allocations: 0.5704 MB / 0.512 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3548, allocations: 8.625 kB / 0.512 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.896e-05/0.3549, allocations: 42.06 kB / 0.5121 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.3549, allocations: 13.72 kB / 0.5121 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.3551, allocations: 208.7 kB / 0.5123 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.3551, allocations: 1.344 kB / 0.5123 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.3551, allocations: 1.125 kB / 0.5123 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.3553, allocations: 97.67 kB / 0.5124 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3553, allocations: 4.875 kB / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.3553, allocations: 0 / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3553, allocations: 0.9688 kB / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.3555, allocations: 60.95 kB / 0.5124 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.3556, allocations: 192.9 kB / 0.5126 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.3557, allocations: 105 kB / 0.5127 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.3558, allocations: 86.36 kB / 0.5128 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-06/0.3558, allocations: 1.25 kB / 0.5128 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.3559, allocations: 36.52 kB / 0.5128 GB, free: 2.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.042e-06/0.3559, allocations: 0 / 0.5128 GB, free: 2.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004829/0.3564, allocations: 320.4 kB / 0.5131 GB, free: 2.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3564, allocations: 95.14 kB / 0.5132 GB, free: 2.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3565, allocations: 154.2 kB / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-06/0.3566, allocations: 25.7 kB / 0.5134 GB, free: 2.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/0.3566, allocations: 108.2 kB / 0.5135 GB, free: 1.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.928e-05/0.3567, allocations: 80.12 kB / 0.5136 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.3567, allocations: 28.77 kB / 0.5136 GB, free: 1.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.3568, allocations: 332.3 kB / 0.5139 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.838e-05/0.3569, allocations: 64.7 kB / 0.514 GB, free: 1.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.812e-05/0.3569, allocations: 60.94 kB / 0.5141 GB, free: 1.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.3572, allocations: 252 kB / 0.5143 GB, free: 1.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3572, allocations: 0 / 0.5143 GB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002526/0.3574, allocations: 238.4 kB / 0.5145 GB, free: 1.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.3575, allocations: 63.58 kB / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3575, allocations: 5.344 kB / 0.5146 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3575, allocations: 3.938 kB / 0.5146 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.3575, allocations: 4.688 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3576, allocations: 1.219 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.492e-05/0.3576, allocations: 12.36 kB / 0.5146 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.3576, allocations: 7.484 kB / 0.5146 GB, free: 1.238 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.0001316/0.3578, allocations: 194.9 kB / 0.5148 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.3578, allocations: 17.84 kB / 0.5148 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.71e-05/0.3578, allocations: 14.45 kB / 0.5148 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3578, allocations: 4 kB / 0.5148 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3578, allocations: 1.094 kB / 0.5148 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3579, allocations: 0.6094 kB / 0.5148 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.358, allocations: 212.2 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.358, allocations: 1.75 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.358, allocations: 0 / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.358, allocations: 0 / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.358, allocations: 6.484 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.358, allocations: 0.7969 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.358, allocations: 3.938 kB / 0.5151 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.3587, allocations: 0.5231 MB / 0.5156 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.058e-05/0.3587, allocations: 97.78 kB / 0.5157 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.3588, allocations: 4.703 kB / 0.5157 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.3588, allocations: 4.312 kB / 0.5157 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.3589, allocations: 6.734 kB / 0.5157 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.3589, allocations: 7.094 kB / 0.5157 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.046e-05/0.359, allocations: 112.9 kB / 0.5158 GB, free: 480 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.359, allocations: 4.469 kB / 0.5158 GB, free: 476 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001204/0.3602, allocations: 345.2 kB / 0.5161 GB, free: 424 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.001666/0.3619, allocations: 1.314 MB / 0.5174 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007506/0.3626, allocations: 0.7181 MB / 0.5181 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3626, allocations: 0 / 0.5181 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.3632, allocations: 0.568 MB / 0.5187 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.3634, allocations: 24.14 kB / 0.5187 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.3665, allocations: 2.681 MB / 0.5213 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.3669, allocations: 0.725 MB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.461e-05/0.3669, allocations: 6.172 kB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.367, allocations: 35.88 kB / 0.522 GB, free: 12.72 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.367, allocations: 0 / 0.522 GB, free: 12.72 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].