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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 83.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1732/0.1732, allocations: 37.99 MB / 348 MB, free: 7.754 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.941e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 56.33 MB / 467 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5612, allocations: 92.05 MB / 0.5459 GB, free: 2.805 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.5615, allocations: 79.95 kB / 0.546 GB, free: 2.727 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04381/0.6053, allocations: 12.03 MB / 0.5578 GB, free: 6.691 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6054, allocations: 0 / 0.5578 GB, free: 6.691 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.6054, allocations: 0 / 0.5578 GB, free: 6.691 MB / 395.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.001251/0.6067, allocations: 0.5502 MB / 0.5583 GB, free: 6.09 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.6068, allocations: 16.03 kB / 0.5583 GB, free: 6.074 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.6068, allocations: 7.906 kB / 0.5583 GB, free: 6.066 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.6071, allocations: 190.9 kB / 0.5585 GB, free: 5.84 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.6071, allocations: 3.984 kB / 0.5585 GB, free: 5.836 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.6072, allocations: 3.938 kB / 0.5585 GB, free: 5.832 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001032/0.6073, allocations: 31.98 kB / 0.5586 GB, free: 5.801 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.6074, allocations: 73.66 kB / 0.5586 GB, free: 5.723 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.6074, allocations: 0 / 0.5586 GB, free: 5.723 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.6075, allocations: 0 / 0.5586 GB, free: 5.723 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.6075, allocations: 4 kB / 0.5586 GB, free: 5.719 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.6077, allocations: 158 kB / 0.5588 GB, free: 5.527 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.6078, allocations: 67.25 kB / 0.5588 GB, free: 5.453 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.353e-05/0.6079, allocations: 56.86 kB / 0.5589 GB, free: 5.395 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.6079, allocations: 0 / 0.5589 GB, free: 5.395 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.6079, allocations: 38.5 kB / 0.5589 GB, free: 5.348 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.6079, allocations: 0 / 0.5589 GB, free: 5.348 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003515/0.6083, allocations: 125.7 kB / 0.5591 GB, free: 5.219 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.6084, allocations: 93.14 kB / 0.5591 GB, free: 5.109 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.6085, allocations: 133.3 kB / 0.5593 GB, free: 4.969 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.6085, allocations: 25.7 kB / 0.5593 GB, free: 4.938 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.384e-05/0.6086, allocations: 100.4 kB / 0.5594 GB, free: 4.832 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/0.6087, allocations: 43.36 kB / 0.5594 GB, free: 4.789 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.6087, allocations: 0 / 0.5594 GB, free: 4.789 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.6089, allocations: 326.8 kB / 0.5597 GB, free: 4.461 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.64e-05/0.6089, allocations: 35.98 kB / 0.5598 GB, free: 4.426 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-05/0.609, allocations: 35.98 kB / 0.5598 GB, free: 4.391 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.6091, allocations: 51.98 kB / 0.5599 GB, free: 4.34 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.6091, allocations: 3.953 kB / 0.5599 GB, free: 4.336 MB / 395.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002229/0.6094, allocations: 132.2 kB / 0.56 GB, free: 4.203 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.091e-05/0.6094, allocations: 45.69 kB / 0.56 GB, free: 4.152 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.6095, allocations: 0 / 0.56 GB, free: 4.152 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.6095, allocations: 0 / 0.56 GB, free: 4.152 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.6095, allocations: 4 kB / 0.56 GB, free: 4.148 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.6095, allocations: 0 / 0.56 GB, free: 4.148 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.796e-05/0.6096, allocations: 7.844 kB / 0.56 GB, free: 4.141 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.6096, allocations: 8 kB / 0.5601 GB, free: 4.133 MB / 395.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 () * 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 0.0001234/0.6097, allocations: 156.6 kB / 0.5602 GB, free: 3.969 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002985/0.61, allocations: 201.4 kB / 0.5604 GB, free: 3.766 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.173e-05/0.6101, allocations: 15.81 kB / 0.5604 GB, free: 3.75 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.256e-05/0.6101, allocations: 12.73 kB / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.6101, allocations: 0 / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6101, allocations: 0 / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.6101, allocations: 0 / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.6103, allocations: 166.1 kB / 0.5606 GB, free: 3.539 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.6103, allocations: 4 kB / 0.5606 GB, free: 3.535 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.234e-06/0.6103, allocations: 11.97 kB / 0.5606 GB, free: 3.523 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.6103, allocations: 0 / 0.5606 GB, free: 3.523 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.6103, allocations: 4 kB / 0.5606 GB, free: 3.52 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.6103, allocations: 0 / 0.5606 GB, free: 3.52 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.6103, allocations: 0 / 0.5606 GB, free: 3.52 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.6107, allocations: 227.1 kB / 0.5608 GB, free: 3.281 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.6107, allocations: 92.91 kB / 0.5609 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.6108, allocations: 0 / 0.5609 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.972e-05/0.6108, allocations: 8.031 kB / 0.5609 GB, free: 3.164 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.6108, allocations: 4 kB / 0.5609 GB, free: 3.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.6109, allocations: 4 kB / 0.5609 GB, free: 3.156 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.734e-05/0.6109, allocations: 111.2 kB / 0.561 GB, free: 3.047 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6109, allocations: 0 / 0.561 GB, free: 3.047 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001275/0.6122, allocations: 371.5 kB / 0.5614 GB, free: 2.684 MB / 395.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 () * 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.001689/0.6139, allocations: 1.181 MB / 0.5625 GB, free: 1.477 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003765/0.6143, allocations: 319.3 kB / 0.5628 GB, free: 1.152 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6143, allocations: 3.938 kB / 0.5628 GB, free: 1.148 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.6146, allocations: 251.3 kB / 0.5631 GB, free: 0.8906 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001949/0.6148, allocations: 16.11 kB / 0.5631 GB, free: 0.875 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007742/0.6155, allocations: 430.1 kB / 0.5635 GB, free: 432 kB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.6159, allocations: 0.7197 MB / 0.5642 GB, free: 15.68 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 1.731e-05/0.616, allocations: 0 / 0.5642 GB, free: 15.68 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.616, allocations: 23.44 kB / 0.5642 GB, free: 15.66 MB / 411.1 MB Notification: Performance of SimCode: time 2.7e-07/0.616, allocations: 4 kB / 0.5642 GB, free: 15.65 MB / 411.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].