Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001265/0.001265, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001215/0.001215, allocations: 193.4 kB / 18 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.508/1.508, 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.1887/0.1887, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 59.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3319, allocations: 58.05 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.00334/0.3353, allocations: 2.15 MB / 0.5057 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002866/0.3381, allocations: 2.039 MB / 0.5077 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.341e-05/0.3383, allocations: 1.125 kB / 0.5077 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.3384, allocations: 21.55 kB / 0.5078 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.3386, allocations: 39.16 kB / 0.5078 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002586/0.3412, allocations: 0.8155 MB / 0.5086 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.3414, allocations: 98.03 kB / 0.5087 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.488e-05/0.3414, allocations: 13.89 kB / 0.5087 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.3415, allocations: 41.61 kB / 0.5087 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.3417, allocations: 59.45 kB / 0.5088 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.3417, allocations: 2.188 kB / 0.5088 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.344, allocations: 1.381 MB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.3441, allocations: 29.56 kB / 0.5102 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.522e-05/0.3441, allocations: 39.36 kB / 0.5102 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.3461, allocations: 1.326 MB / 0.5115 GB, free: 3.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3461, allocations: 5 kB / 0.5115 GB, free: 3.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3461, allocations: 0 / 0.5115 GB, free: 3.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3461, allocations: 0 / 0.5115 GB, free: 3.477 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006354/0.3468, allocations: 0.5512 MB / 0.512 GB, free: 2.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3468, allocations: 12.8 kB / 0.5121 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.219e-05/0.3469, allocations: 63.97 kB / 0.5121 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/0.347, allocations: 19.94 kB / 0.5121 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.3471, allocations: 215.7 kB / 0.5123 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.3471, allocations: 6.625 kB / 0.5123 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.3472, allocations: 5.844 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.3474, allocations: 124.8 kB / 0.5125 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3474, allocations: 0 / 0.5125 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3474, allocations: 1.125 kB / 0.5125 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3474, allocations: 5.312 kB / 0.5125 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.3476, allocations: 74.89 kB / 0.5125 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.3479, allocations: 357.5 kB / 0.5129 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.3481, allocations: 80.53 kB / 0.513 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.225e-05/0.3481, allocations: 58.09 kB / 0.513 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.3482, allocations: 1.531 kB / 0.513 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.3482, allocations: 35.17 kB / 0.5131 GB, free: 2.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.3482, allocations: 0 / 0.5131 GB, free: 2.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003717/0.3486, allocations: 229.7 kB / 0.5133 GB, free: 2.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.3486, allocations: 87.53 kB / 0.5134 GB, free: 1.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3487, allocations: 154.2 kB / 0.5135 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.3487, allocations: 25.7 kB / 0.5135 GB, free: 1.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.917e-05/0.3488, allocations: 117.2 kB / 0.5136 GB, free: 1.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.3488, allocations: 48.39 kB / 0.5137 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.3489, allocations: 28.09 kB / 0.5137 GB, free: 1.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.012e-05/0.3489, allocations: 323.4 kB / 0.514 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.044e-05/0.349, allocations: 41.53 kB / 0.5141 GB, free: 1.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.776e-05/0.3491, allocations: 37.16 kB / 0.5141 GB, free: 1.336 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.3492, allocations: 172.6 kB / 0.5143 GB, free: 1.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3493, allocations: 0 / 0.5143 GB, free: 1.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002166/0.3495, allocations: 184.6 kB / 0.5144 GB, free: 1.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.642e-05/0.3495, allocations: 48.8 kB / 0.5145 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3495, allocations: 0.6562 kB / 0.5145 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.3496, allocations: 5.125 kB / 0.5145 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3496, allocations: 0 / 0.5145 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3496, allocations: 2.203 kB / 0.5145 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.3496, allocations: 6.922 kB / 0.5145 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.3497, allocations: 8.438 kB / 0.5145 GB, free: 1.113 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.0001067/0.3498, allocations: 173.8 kB / 0.5147 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.597e-05/0.3498, allocations: 19 kB / 0.5147 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.858e-05/0.3499, allocations: 18.39 kB / 0.5147 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3499, allocations: 0.6094 kB / 0.5147 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3499, allocations: 4 kB / 0.5147 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3499, allocations: 0 / 0.5147 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.3501, allocations: 216.8 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3501, allocations: 1.188 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.3501, allocations: 0.7031 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3501, allocations: 1.406 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3501, allocations: 3.266 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3501, allocations: 1.375 kB / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3501, allocations: 0 / 0.5149 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.3504, allocations: 380.3 kB / 0.5153 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.3505, allocations: 84.84 kB / 0.5154 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3505, allocations: 3.641 kB / 0.5154 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.436e-05/0.3506, allocations: 1.562 kB / 0.5154 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.3506, allocations: 11.52 kB / 0.5154 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.3506, allocations: 5.609 kB / 0.5154 GB, free: 412 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.158e-05/0.3507, allocations: 115.3 kB / 0.5155 GB, free: 328 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3507, allocations: 0 / 0.5155 GB, free: 328 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001261/0.352, allocations: 344.8 kB / 0.5158 GB, free: 272 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.001922/0.3539, allocations: 1.28 MB / 0.5171 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000408/0.3543, allocations: 342.6 kB / 0.5174 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3543, allocations: 0 / 0.5174 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.3546, allocations: 255.5 kB / 0.5177 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.3549, allocations: 16.08 kB / 0.5177 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.3576, allocations: 2.323 MB / 0.5199 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.358, allocations: 0.7324 MB / 0.5207 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.112e-05/0.3581, allocations: 6.641 kB / 0.5207 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.3581, allocations: 36.25 kB / 0.5207 GB, free: 12.86 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3581, allocations: 0 / 0.5207 GB, free: 12.86 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].