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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001764/0.001764, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008533/0.0008532, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1682/0.1682, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.647e-05/3.649e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 56.32 MB / 474.1 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5671, allocations: 89.36 MB / 0.5503 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.5674, allocations: 84.19 kB / 0.5504 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01801/0.5854, allocations: 5.702 MB / 0.5559 GB, free: 7.258 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5855, allocations: 0 / 0.5559 GB, free: 7.258 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.5855, allocations: 4 kB / 0.556 GB, free: 7.254 MB / 362.7 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.0004254/0.5859, allocations: 450.8 kB / 0.5564 GB, free: 6.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.586, allocations: 8.031 kB / 0.5564 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.658e-05/0.5861, allocations: 64.42 kB / 0.5565 GB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.5861, allocations: 15.81 kB / 0.5565 GB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.5863, allocations: 204.3 kB / 0.5567 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.5864, allocations: 4 kB / 0.5567 GB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.5864, allocations: 7.312 kB / 0.5567 GB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.5866, allocations: 138.4 kB / 0.5568 GB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.5866, allocations: 4 kB / 0.5568 GB, free: 6.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.5866, allocations: 6.938 kB / 0.5568 GB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5867, allocations: 0 / 0.5568 GB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.5868, allocations: 81.27 kB / 0.5569 GB, free: 6.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003892/0.5872, allocations: 360.7 kB / 0.5572 GB, free: 5.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.5873, allocations: 141 kB / 0.5574 GB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.267e-05/0.5874, allocations: 115.4 kB / 0.5575 GB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-06/0.5874, allocations: 3.984 kB / 0.5575 GB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.5874, allocations: 38.5 kB / 0.5575 GB, free: 5.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 9.62e-07/0.5874, allocations: 0 / 0.5575 GB, free: 5.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002989/0.5877, allocations: 219.2 kB / 0.5577 GB, free: 5.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.5878, allocations: 93.09 kB / 0.5578 GB, free: 5.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.365e-05/0.5879, allocations: 124.5 kB / 0.5579 GB, free: 5.227 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.5879, allocations: 25.7 kB / 0.558 GB, free: 5.195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.87e-05/0.5879, allocations: 102.7 kB / 0.5581 GB, free: 5.102 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.588, allocations: 65.7 kB / 0.5581 GB, free: 5.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.588, allocations: 4 kB / 0.5581 GB, free: 5.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.588, allocations: 322.6 kB / 0.5584 GB, free: 4.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.402e-05/0.5881, allocations: 58.89 kB / 0.5585 GB, free: 4.672 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.306e-05/0.5882, allocations: 61.98 kB / 0.5585 GB, free: 4.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.803e-05/0.5883, allocations: 107.7 kB / 0.5587 GB, free: 4.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5883, allocations: 7.969 kB / 0.5587 GB, free: 4.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001945/0.5885, allocations: 219.8 kB / 0.5589 GB, free: 4.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.5885, allocations: 53.36 kB / 0.5589 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.5885, allocations: 0 / 0.5589 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.5886, allocations: 7.938 kB / 0.5589 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.5886, allocations: 0 / 0.5589 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.5886, allocations: 0 / 0.5589 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.5886, allocations: 7.906 kB / 0.5589 GB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.5887, allocations: 18.69 kB / 0.559 GB, free: 4.227 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.041e-05/0.5888, allocations: 161.8 kB / 0.5591 GB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.334e-05/0.5888, allocations: 15.81 kB / 0.5591 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.822e-05/0.5888, allocations: 12.25 kB / 0.5591 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.5888, allocations: 0 / 0.5591 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.5888, allocations: 0 / 0.5591 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.5888, allocations: 0 / 0.5591 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.589, allocations: 217.5 kB / 0.5593 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.589, allocations: 0 / 0.5593 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.589, allocations: 0 / 0.5593 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.589, allocations: 0 / 0.5593 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.589, allocations: 4 kB / 0.5593 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.589, allocations: 4 kB / 0.5593 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.589, allocations: 7.938 kB / 0.5594 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.5894, allocations: 452.7 kB / 0.5598 GB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.5894, allocations: 92.86 kB / 0.5599 GB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.5895, allocations: 7.953 kB / 0.5599 GB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.363e-05/0.5895, allocations: 0 / 0.5599 GB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.5896, allocations: 4 kB / 0.5599 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.5896, allocations: 15.34 kB / 0.5599 GB, free: 3.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.032e-05/0.5896, allocations: 100.9 kB / 0.56 GB, free: 3.133 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5896, allocations: 0 / 0.56 GB, free: 3.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000402/0.5901, allocations: 151 kB / 0.5601 GB, free: 2.988 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009479/0.591, allocations: 1.238 MB / 0.5614 GB, free: 1.828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.5914, allocations: 0.5608 MB / 0.5619 GB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5914, allocations: 0 / 0.5619 GB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.5917, allocations: 466.1 kB / 0.5623 GB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.5919, allocations: 11.95 kB / 0.5624 GB, free: 1.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006145/0.5925, allocations: 440.4 kB / 0.5628 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.5927, allocations: 0.7435 MB / 0.5635 GB, free: 68 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.642e-05/0.5927, allocations: 0 / 0.5635 GB, free: 68 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.5928, allocations: 33.11 kB / 0.5635 GB, free: 56 kB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.5928, allocations: 3.938 kB / 0.5635 GB, free: 52 kB / 362.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].