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.001295/0.001295, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001154/0.001154, allocations: 197.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.44/1.44, 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-master/package.mo): time 0.1832/0.1832, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003079/0.003079, allocations: 59.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3632, allocations: 58.06 MB / 0.5036 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003757/0.367, allocations: 2.159 MB / 0.5057 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3686, allocations: 1.063 MB / 0.5068 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.908e-05/0.3687, allocations: 1.125 kB / 0.5068 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.3688, allocations: 14.44 kB / 0.5068 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.369, allocations: 54.31 kB / 0.5069 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000939/0.3699, allocations: 282.8 kB / 0.5071 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.3701, allocations: 121.5 kB / 0.5072 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.3702, allocations: 3.969 kB / 0.5072 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.3703, allocations: 52.31 kB / 0.5073 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.3705, allocations: 66.98 kB / 0.5074 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.3705, allocations: 2.375 kB / 0.5074 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006942/0.3712, allocations: 411.2 kB / 0.5078 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.502e-05/0.3713, allocations: 45.94 kB / 0.5078 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.246e-05/0.3713, allocations: 37.56 kB / 0.5078 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007311/0.3721, allocations: 0.5128 MB / 0.5083 GB, free: 4.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3721, allocations: 0.8438 kB / 0.5083 GB, free: 4.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3721, allocations: 0 / 0.5083 GB, free: 4.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.3721, allocations: 3.938 kB / 0.5083 GB, free: 4.66 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.0004246/0.3725, allocations: 471.2 kB / 0.5088 GB, free: 4.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3726, allocations: 12.08 kB / 0.5088 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.3727, allocations: 65.39 kB / 0.5089 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.3727, allocations: 15.03 kB / 0.5089 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.3729, allocations: 196.4 kB / 0.5091 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.3729, allocations: 13.23 kB / 0.5091 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.3729, allocations: 9.062 kB / 0.5091 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.3732, allocations: 132.7 kB / 0.5092 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.3732, allocations: 3.938 kB / 0.5092 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.3732, allocations: 1.281 kB / 0.5092 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.3732, allocations: 1.875 kB / 0.5092 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3734, allocations: 87.56 kB / 0.5093 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.3738, allocations: 352 kB / 0.5096 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.374, allocations: 133.7 kB / 0.5098 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.3741, allocations: 122.2 kB / 0.5099 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.998e-06/0.3741, allocations: 0 / 0.5099 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3741, allocations: 36 kB / 0.5099 GB, free: 3.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.002e-06/0.3741, allocations: 0 / 0.5099 GB, free: 3.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005496/0.3747, allocations: 295 kB / 0.5102 GB, free: 3.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.3748, allocations: 100 kB / 0.5103 GB, free: 3.125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.992e-05/0.3749, allocations: 136.1 kB / 0.5104 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.3749, allocations: 26.7 kB / 0.5104 GB, free: 2.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.57e-05/0.3749, allocations: 109.9 kB / 0.5105 GB, free: 2.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.375, allocations: 65.66 kB / 0.5106 GB, free: 2.832 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.375, allocations: 27.53 kB / 0.5106 GB, free: 2.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.973e-05/0.3751, allocations: 322.3 kB / 0.5109 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.293e-05/0.3752, allocations: 56.7 kB / 0.511 GB, free: 2.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.359e-05/0.3753, allocations: 62.25 kB / 0.5111 GB, free: 2.469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3755, allocations: 236.5 kB / 0.5113 GB, free: 2.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3755, allocations: 0 / 0.5113 GB, free: 2.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002615/0.3758, allocations: 222.3 kB / 0.5115 GB, free: 2.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.3759, allocations: 55.88 kB / 0.5116 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.3759, allocations: 0.6562 kB / 0.5116 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3759, allocations: 1.156 kB / 0.5116 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3759, allocations: 0 / 0.5116 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3759, allocations: 1.812 kB / 0.5116 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.251e-05/0.376, allocations: 15.86 kB / 0.5116 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.376, allocations: 7.391 kB / 0.5116 GB, free: 2.211 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.0001341/0.3762, allocations: 185 kB / 0.5118 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.3762, allocations: 16.7 kB / 0.5118 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.678e-05/0.3762, allocations: 9.516 kB / 0.5118 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3762, allocations: 1.219 kB / 0.5118 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3762, allocations: 0 / 0.5118 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.3763, allocations: 0 / 0.5118 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.3764, allocations: 214.8 kB / 0.512 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3765, allocations: 0 / 0.512 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.914e-06/0.3765, allocations: 7.438 kB / 0.512 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3765, allocations: 4.938 kB / 0.512 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3765, allocations: 8.375 kB / 0.512 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3765, allocations: 5 kB / 0.512 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3765, allocations: 0.5625 kB / 0.512 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.377, allocations: 458.4 kB / 0.5124 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/0.377, allocations: 93.33 kB / 0.5125 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.377, allocations: 3.781 kB / 0.5125 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.817e-05/0.3771, allocations: 5.172 kB / 0.5125 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.729e-05/0.3771, allocations: 5.984 kB / 0.5125 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.3772, allocations: 14.56 kB / 0.5126 GB, free: 1.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.473e-05/0.3772, allocations: 100.3 kB / 0.5127 GB, free: 1.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3772, allocations: 0 / 0.5127 GB, free: 1.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006011/0.3778, allocations: 139.7 kB / 0.5128 GB, free: 1.371 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.00117/0.379, allocations: 1.244 MB / 0.514 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005121/0.3795, allocations: 0.5603 MB / 0.5146 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.3796, allocations: 0 / 0.5146 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.3799, allocations: 472.7 kB / 0.515 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.3802, allocations: 18.84 kB / 0.515 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.3833, allocations: 2.449 MB / 0.5174 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3837, allocations: 0.7328 MB / 0.5181 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.53e-05/0.3837, allocations: 2.266 kB / 0.5181 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.3837, allocations: 35.77 kB / 0.5182 GB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3837, allocations: 0 / 0.5182 GB, free: 13.66 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].