Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001149/0.001149, allocations: 176.4 kB / 8.349 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.651/1.651, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.0009761/0.0009763, allocations: 86.59 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1961/0.1961, allocations: 37.99 MB / 348.1 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/1.996e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 56.33 MB / 467 MB, free: 6.457 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4529/0.5698, allocations: 91.76 MB / 0.5457 GB, free: 3.008 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.5702, allocations: 79.95 kB / 0.5457 GB, free: 2.93 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04291/0.6131, allocations: 11.9 MB / 0.5574 GB, free: 7.031 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.6132, allocations: 0 / 0.5574 GB, free: 7.031 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.6132, allocations: 4 kB / 0.5574 GB, free: 7.027 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001056/0.6143, allocations: 0.5385 MB / 0.5579 GB, free: 6.438 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.6143, allocations: 12.03 kB / 0.5579 GB, free: 6.426 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.6144, allocations: 11.91 kB / 0.5579 GB, free: 6.414 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.6146, allocations: 184 kB / 0.5581 GB, free: 6.195 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.6146, allocations: 0 / 0.5581 GB, free: 6.195 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.6146, allocations: 4 kB / 0.5581 GB, free: 6.191 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.122e-05/0.6147, allocations: 27.98 kB / 0.5581 GB, free: 6.164 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.6148, allocations: 65.61 kB / 0.5582 GB, free: 6.094 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.6149, allocations: 0 / 0.5582 GB, free: 6.094 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.6149, allocations: 7.984 kB / 0.5582 GB, free: 6.086 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.6149, allocations: 0 / 0.5582 GB, free: 6.086 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.6151, allocations: 146.2 kB / 0.5583 GB, free: 5.906 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.6152, allocations: 59.25 kB / 0.5584 GB, free: 5.84 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.623e-05/0.6153, allocations: 45.62 kB / 0.5584 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.6153, allocations: 0 / 0.5584 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.6153, allocations: 30.56 kB / 0.5585 GB, free: 5.754 MB / 395.1 MB Notification: Performance of pre-optimization done (n=12): time 9.02e-07/0.6153, allocations: 224 / 0.5585 GB, free: 5.754 MB / 395.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003538/0.6157, allocations: 117.4 kB / 0.5586 GB, free: 5.633 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.6157, allocations: 93.12 kB / 0.5587 GB, free: 5.523 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.6159, allocations: 117.1 kB / 0.5588 GB, free: 5.398 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.6159, allocations: 25.7 kB / 0.5588 GB, free: 5.367 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.442e-05/0.616, allocations: 96.08 kB / 0.5589 GB, free: 5.27 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.6e-05/0.616, allocations: 39.36 kB / 0.5589 GB, free: 5.23 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-06/0.616, allocations: 4 kB / 0.5589 GB, free: 5.227 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6162, allocations: 318.8 kB / 0.5592 GB, free: 4.906 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.177e-05/0.6163, allocations: 31.98 kB / 0.5593 GB, free: 4.875 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.591e-05/0.6163, allocations: 31.98 kB / 0.5593 GB, free: 4.844 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.6164, allocations: 40.95 kB / 0.5593 GB, free: 4.805 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.6164, allocations: 3.953 kB / 0.5593 GB, free: 4.801 MB / 395.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001901/0.6166, allocations: 113.5 kB / 0.5594 GB, free: 4.684 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.6167, allocations: 49.69 kB / 0.5595 GB, free: 4.629 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.6167, allocations: 0 / 0.5595 GB, free: 4.629 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.6167, allocations: 4 kB / 0.5595 GB, free: 4.625 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-06/0.6167, allocations: 3.938 kB / 0.5595 GB, free: 4.621 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.6167, allocations: 0 / 0.5595 GB, free: 4.621 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.609e-05/0.6168, allocations: 7.938 kB / 0.5595 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.6168, allocations: 12.05 kB / 0.5595 GB, free: 4.602 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.0001282/0.6169, allocations: 152.5 kB / 0.5597 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000266/0.6172, allocations: 182.7 kB / 0.5598 GB, free: 4.258 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.6172, allocations: 19.81 kB / 0.5599 GB, free: 4.238 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.719e-05/0.6173, allocations: 4.625 kB / 0.5599 GB, free: 4.234 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.6173, allocations: 0 / 0.5599 GB, free: 4.234 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.6173, allocations: 0 / 0.5599 GB, free: 4.234 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.6173, allocations: 7.984 kB / 0.5599 GB, free: 4.227 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.6174, allocations: 154.1 kB / 0.56 GB, free: 4.039 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6174, allocations: 0 / 0.56 GB, free: 4.039 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.6174, allocations: 4.031 kB / 0.56 GB, free: 4.035 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.6174, allocations: 3.984 kB / 0.56 GB, free: 4.031 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.6175, allocations: 4 kB / 0.56 GB, free: 4.027 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.6175, allocations: 0 / 0.56 GB, free: 4.027 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.6175, allocations: 4 kB / 0.56 GB, free: 4.023 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.6178, allocations: 209 kB / 0.5602 GB, free: 3.801 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.642e-05/0.6178, allocations: 92.91 kB / 0.5603 GB, free: 3.691 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.6179, allocations: 4 kB / 0.5603 GB, free: 3.688 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.64e-05/0.6179, allocations: 4.031 kB / 0.5603 GB, free: 3.684 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.6179, allocations: 7.984 kB / 0.5603 GB, free: 3.676 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.618, allocations: 4 kB / 0.5603 GB, free: 3.672 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.743e-05/0.618, allocations: 99.27 kB / 0.5604 GB, free: 3.574 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.618, allocations: 0 / 0.5604 GB, free: 3.574 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001292/0.6193, allocations: 355.7 kB / 0.5608 GB, free: 3.227 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.001506/0.6209, allocations: 1.077 MB / 0.5618 GB, free: 2.121 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.6212, allocations: 283.3 kB / 0.5621 GB, free: 1.832 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6212, allocations: 0 / 0.5621 GB, free: 1.832 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.6214, allocations: 215.3 kB / 0.5623 GB, free: 1.609 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.6216, allocations: 12.16 kB / 0.5623 GB, free: 1.598 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006737/0.6223, allocations: 381.3 kB / 0.5627 GB, free: 1.188 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.6226, allocations: 0.7041 MB / 0.5634 GB, free: 468 kB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.427e-05/0.6226, allocations: 7.984 kB / 0.5634 GB, free: 460 kB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.6226, allocations: 19.44 kB / 0.5634 GB, free: 444 kB / 395.1 MB Notification: Performance of SimCode: time 2.7e-07/0.6226, allocations: 0 / 0.5634 GB, free: 444 kB / 395.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].