Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002359/0.002359, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00254/0.00254, allocations: 216 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.58/1.58, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1888/0.1888, allocations: 38.56 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 67.89 kB / 493 MB, free: 4.168 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3857/0.3879, allocations: 62.46 MB / 0.5424 GB, free: 416 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003827/0.3917, allocations: 2.198 MB / 0.5446 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.3953, allocations: 1.891 MB / 0.5464 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.532e-05/0.3953, allocations: 0 / 0.5464 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.3955, allocations: 14.56 kB / 0.5464 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3956, allocations: 26.03 kB / 0.5465 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.3984, allocations: 0.9778 MB / 0.5474 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.3985, allocations: 71.2 kB / 0.5475 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.135e-05/0.3986, allocations: 10.5 kB / 0.5475 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.3987, allocations: 38.91 kB / 0.5475 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.809e-05/0.3988, allocations: 52.81 kB / 0.5476 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.3988, allocations: 2.094 kB / 0.5476 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.4022, allocations: 1.894 MB / 0.5494 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.234e-05/0.4022, allocations: 28.31 kB / 0.5495 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.072e-05/0.4023, allocations: 30.62 kB / 0.5495 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002066/0.4043, allocations: 1.364 MB / 0.5508 GB, free: 10.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4044, allocations: 0 / 0.5508 GB, free: 10.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4044, allocations: 1.062 kB / 0.5508 GB, free: 10.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.4044, allocations: 0 / 0.5508 GB, free: 10.44 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000789/0.4052, allocations: 0.495 MB / 0.5513 GB, free: 9.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.4052, allocations: 12.86 kB / 0.5513 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/0.4052, allocations: 13.22 kB / 0.5513 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.4054, allocations: 150.9 kB / 0.5515 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.4054, allocations: 0 / 0.5515 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.4054, allocations: 1.5 kB / 0.5515 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.4057, allocations: 172.2 kB / 0.5516 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.4057, allocations: 0 / 0.5516 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.4057, allocations: 1.125 kB / 0.5516 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4057, allocations: 0 / 0.5516 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.4059, allocations: 135.6 kB / 0.5518 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.4061, allocations: 132.7 kB / 0.5519 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.4062, allocations: 149.8 kB / 0.552 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.4064, allocations: 139.8 kB / 0.5522 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.4064, allocations: 5.25 kB / 0.5522 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.4064, allocations: 35.81 kB / 0.5522 GB, free: 9.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.4064, allocations: 0 / 0.5522 GB, free: 9.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000708/0.4072, allocations: 483.3 kB / 0.5527 GB, free: 9.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.4072, allocations: 100.4 kB / 0.5528 GB, free: 8.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.4074, allocations: 150.1 kB / 0.5529 GB, free: 8.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.4074, allocations: 29.64 kB / 0.5529 GB, free: 8.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.172e-05/0.4075, allocations: 101.7 kB / 0.553 GB, free: 8.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.758e-05/0.4075, allocations: 76.14 kB / 0.5531 GB, free: 8.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.4076, allocations: 29.83 kB / 0.5531 GB, free: 8.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4078, allocations: 333 kB / 0.5535 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.4079, allocations: 125.4 kB / 0.5536 GB, free: 8.195 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.4081, allocations: 135 kB / 0.5537 GB, free: 8.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.4084, allocations: 304.5 kB / 0.554 GB, free: 7.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4084, allocations: 1.125 kB / 0.554 GB, free: 7.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004302/0.4088, allocations: 334.5 kB / 0.5543 GB, free: 7.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.374e-05/0.4089, allocations: 65.66 kB / 0.5544 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4089, allocations: 0 / 0.5544 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.409, allocations: 0 / 0.5544 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.409, allocations: 0 / 0.5544 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.409, allocations: 4 kB / 0.5544 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.187e-05/0.409, allocations: 15.95 kB / 0.5544 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.409, allocations: 4 kB / 0.5544 GB, free: 7.672 MB / 398.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.0002043/0.4093, allocations: 199.4 kB / 0.5546 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.4093, allocations: 19.91 kB / 0.5546 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.337e-05/0.4093, allocations: 13.28 kB / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4093, allocations: 0 / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4093, allocations: 0 / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.4093, allocations: 0 / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.4095, allocations: 137.1 kB / 0.5548 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4095, allocations: 0 / 0.5548 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-06/0.4095, allocations: 7.984 kB / 0.5548 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4095, allocations: 0 / 0.5548 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.4095, allocations: 11.98 kB / 0.5548 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4095, allocations: 0 / 0.5548 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4095, allocations: 0 / 0.5548 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.4102, allocations: 0.5268 MB / 0.5553 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.4103, allocations: 23.78 kB / 0.5553 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.4103, allocations: 7.938 kB / 0.5553 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.033e-05/0.4103, allocations: 4 kB / 0.5553 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.4104, allocations: 8 kB / 0.5553 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.4104, allocations: 4 kB / 0.5553 GB, free: 6.641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.4105, allocations: 123.2 kB / 0.5555 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4105, allocations: 0 / 0.5555 GB, free: 6.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00116/0.4117, allocations: 335.4 kB / 0.5558 GB, free: 6.191 MB / 398.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.000923/0.4126, allocations: 374.4 kB / 0.5561 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006688/0.4133, allocations: 0.5024 MB / 0.5566 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4133, allocations: 0 / 0.5566 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.4136, allocations: 313 kB / 0.5569 GB, free: 4.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.4139, allocations: 16.81 kB / 0.5569 GB, free: 4.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009014/0.4148, allocations: 0.5308 MB / 0.5575 GB, free: 4.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.4149, allocations: 114 kB / 0.5576 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.375e-05/0.4149, allocations: 0 / 0.5576 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.4149, allocations: 15.38 kB / 0.5576 GB, free: 4.246 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4149, allocations: 4.062 kB / 0.5576 GB, free: 4.242 MB / 398.1 MB [CodegenCFunctions.tpl:5658:13-5658:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 3.31726411357522] Failed to read output from testmodel.py, exit status != 0: 0.43730583786964417 0.45220445400000003 0.044584825 Calling exit ...