Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.001399/0.001399, allocations: 111.6 kB / 17.06 MB, free: 5.973 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.001921/0.001921, allocations: 200 kB / 18.01 MB, free: 5.055 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.361/1.361, 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.1746/0.1746, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 67.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4047, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003249/0.408, allocations: 2.16 MB / 0.5057 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.4094, allocations: 1.064 MB / 0.5068 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.732e-05/0.4094, allocations: 1.125 kB / 0.5068 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.4097, allocations: 19.14 kB / 0.5068 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.4099, allocations: 50 kB / 0.5068 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.4113, allocations: 286.5 kB / 0.5071 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.4116, allocations: 121.4 kB / 0.5072 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.405e-05/0.4117, allocations: 8.203 kB / 0.5072 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.4119, allocations: 48.34 kB / 0.5073 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.4121, allocations: 71.59 kB / 0.5074 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.4121, allocations: 1.969 kB / 0.5074 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.4132, allocations: 415 kB / 0.5078 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.4133, allocations: 37.12 kB / 0.5078 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.895e-05/0.4134, allocations: 38.12 kB / 0.5078 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.4147, allocations: 0.5196 MB / 0.5083 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.4147, allocations: 0 / 0.5083 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.539e-06/0.4147, allocations: 1.156 kB / 0.5083 GB, free: 4.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.4147, allocations: 3.938 kB / 0.5083 GB, free: 4.785 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007846/0.4155, allocations: 465.4 kB / 0.5088 GB, free: 4.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/0.4156, allocations: 12.92 kB / 0.5088 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.726e-05/0.4157, allocations: 59.78 kB / 0.5088 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.005e-05/0.4158, allocations: 20.67 kB / 0.5089 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.416, allocations: 196.6 kB / 0.5091 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.416, allocations: 3.781 kB / 0.5091 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.416, allocations: 16.66 kB / 0.5091 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.4163, allocations: 130 kB / 0.5092 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.4163, allocations: 0 / 0.5092 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.4164, allocations: 9.188 kB / 0.5092 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.4164, allocations: 1.25 kB / 0.5092 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001539/0.4165, allocations: 83.55 kB / 0.5093 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.417, allocations: 349 kB / 0.5096 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.4172, allocations: 133 kB / 0.5097 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.4173, allocations: 119.5 kB / 0.5099 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-06/0.4173, allocations: 0 / 0.5099 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.4174, allocations: 37.11 kB / 0.5099 GB, free: 3.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.042e-06/0.4174, allocations: 0 / 0.5099 GB, free: 3.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.000596/0.418, allocations: 298.1 kB / 0.5102 GB, free: 3.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.418, allocations: 95.44 kB / 0.5103 GB, free: 3.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.4181, allocations: 133.4 kB / 0.5104 GB, free: 3.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.4182, allocations: 31.11 kB / 0.5104 GB, free: 3.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.4182, allocations: 109.7 kB / 0.5105 GB, free: 3.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.133e-05/0.4183, allocations: 63.88 kB / 0.5106 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.4183, allocations: 28.45 kB / 0.5106 GB, free: 2.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.052e-05/0.4184, allocations: 327.1 kB / 0.5109 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.089e-05/0.4185, allocations: 51.91 kB / 0.511 GB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.779e-05/0.4186, allocations: 57.61 kB / 0.511 GB, free: 2.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.4189, allocations: 236.4 kB / 0.5113 GB, free: 2.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4189, allocations: 4.031 kB / 0.5113 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003477/0.4192, allocations: 222 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.034e-05/0.4193, allocations: 56.83 kB / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4193, allocations: 0 / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.4193, allocations: 1.578 kB / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.4193, allocations: 0 / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.4194, allocations: 1.781 kB / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.099e-05/0.4194, allocations: 16.41 kB / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.4195, allocations: 6.781 kB / 0.5116 GB, free: 2.352 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.0001343/0.4196, allocations: 185.5 kB / 0.5117 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.4196, allocations: 16.88 kB / 0.5118 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.4197, allocations: 12.53 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4197, allocations: 1.062 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4197, allocations: 4.797 kB / 0.5118 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4197, allocations: 0 / 0.5118 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.4199, allocations: 210.7 kB / 0.512 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4199, allocations: 0.5625 kB / 0.512 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-06/0.4199, allocations: 3.938 kB / 0.512 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4199, allocations: 2.266 kB / 0.512 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.4199, allocations: 11.88 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4199, allocations: 0.7031 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4199, allocations: 5.406 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004557/0.4204, allocations: 449.6 kB / 0.5124 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.4204, allocations: 95.86 kB / 0.5125 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.4205, allocations: 4.75 kB / 0.5125 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.851e-05/0.4205, allocations: 2.688 kB / 0.5125 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.4206, allocations: 10.94 kB / 0.5125 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.4206, allocations: 10.86 kB / 0.5125 GB, free: 1.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.068e-05/0.4206, allocations: 100.8 kB / 0.5126 GB, free: 1.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4207, allocations: 0 / 0.5126 GB, free: 1.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.4213, allocations: 143.4 kB / 0.5128 GB, free: 1.512 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.001211/0.4225, allocations: 1.237 MB / 0.514 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006247/0.4232, allocations: 0.5681 MB / 0.5145 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4232, allocations: 1.469 kB / 0.5145 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.4236, allocations: 465.8 kB / 0.515 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.4239, allocations: 19.14 kB / 0.515 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.427, allocations: 2.434 MB / 0.5174 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.4273, allocations: 0.7329 MB / 0.5181 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.552e-05/0.4274, allocations: 5.719 kB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.15e-05/0.4274, allocations: 36.06 kB / 0.5181 GB, free: 13.81 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4274, allocations: 0 / 0.5181 GB, free: 13.81 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].